summary refs log tree commit diff
diff options
context:
space:
mode:
authorMark Haines <mark.haines@matrix.org>2014-11-19 17:18:55 +0000
committerMark Haines <mark.haines@matrix.org>2014-11-19 17:18:55 +0000
commitca91bb2f7f22604ba582b149759cc9d7c6ae18c0 (patch)
tree9c204b29ab94b26371c46ca46aa26ec31b4bb5ea
parentSYN-153: Raise 404 if room alias is not found (diff)
downloadsynapse-ca91bb2f7f22604ba582b149759cc9d7c6ae18c0.tar.xz
Sometimes there isn't a current logging context
-rw-r--r--synapse/util/__init__.py2
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)