mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2024-10-01 11:49:51 -04:00
Sometimes there isn't a current logging context
This commit is contained in:
parent
8993affdc0
commit
ca91bb2f7f
@ -38,7 +38,7 @@ class Clock(object):
|
|||||||
def call_later(self, delay, callback):
|
def call_later(self, delay, callback):
|
||||||
current_context = LoggingContext.current_context()
|
current_context = LoggingContext.current_context()
|
||||||
def wrapped_callback():
|
def wrapped_callback():
|
||||||
current_context.thread_local.current_context = current_context
|
LoggingContext.thread_local.current_context = current_context
|
||||||
callback()
|
callback()
|
||||||
return reactor.callLater(delay, wrapped_callback)
|
return reactor.callLater(delay, wrapped_callback)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user