mirror of
https://github.com/element-hq/synapse.git
synced 2026-04-27 15:05:46 +00:00
Sometimes there isn't a current logging context
This commit is contained in:
@@ -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)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user