Skip to content
This repository has been archived by the owner on Apr 26, 2024. It is now read-only.

Commit

Permalink
Implement workaround for login error.
Browse files Browse the repository at this point in the history
Signed-off-by: Robert Jacob <[email protected]>
  • Loading branch information
xperimental committed Jan 30, 2019
1 parent b6dce9b commit 2a7f0b8
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
1 change: 1 addition & 0 deletions changelog.d/4486.bugfix
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Workaround for login error when using both LDAP and internal authentication.
5 changes: 4 additions & 1 deletion synapse/util/logcontext.py
Original file line number Diff line number Diff line change
Expand Up @@ -285,7 +285,10 @@ def __exit__(self, type, value, traceback):
self.alive = False

# if we have a parent, pass our CPU usage stats on
if self.parent_context is not None:
if (
self.parent_context is not None
and hasattr(self.parent_context, '_resource_usage')
):
self.parent_context._resource_usage += self._resource_usage

# reset them in case we get entered again
Expand Down

0 comments on commit 2a7f0b8

Please sign in to comment.