diff options
author | Mark Haines <mark.haines@matrix.org> | 2014-11-19 17:18:55 +0000 |
---|---|---|
committer | Mark Haines <mark.haines@matrix.org> | 2014-11-19 17:18:55 +0000 |
commit | ca91bb2f7f22604ba582b149759cc9d7c6ae18c0 (patch) | |
tree | 9c204b29ab94b26371c46ca46aa26ec31b4bb5ea | |
parent | SYN-153: Raise 404 if room alias is not found (diff) | |
download | synapse-ca91bb2f7f22604ba582b149759cc9d7c6ae18c0.tar.xz |
Sometimes there isn't a current logging context
Diffstat (limited to '')
-rw-r--r-- | synapse/util/__init__.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/synapse/util/__init__.py b/synapse/util/__init__.py index 9ad613b8f1..e57fb0e914 100644 --- a/synapse/util/__init__.py +++ b/synapse/util/__init__.py @@ -38,7 +38,7 @@ class Clock(object): def call_later(self, delay, callback): current_context = LoggingContext.current_context() def wrapped_callback(): - current_context.thread_local.current_context = current_context + LoggingContext.thread_local.current_context = current_context callback() return reactor.callLater(delay, wrapped_callback) |