Sometimes there isn't a current logging context

pull/4/merge
Mark Haines 10 years ago
parent 8993affdc0
commit ca91bb2f7f
  1. 2
      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)

Loading…
Cancel
Save