0
0
Fork 1
mirror of https://mau.dev/maunium/synapse.git synced 2024-06-29 07:58:19 +02:00

Sometimes there isn't a current logging context

This commit is contained in:
Mark Haines 2014-11-19 17:18:55 +00:00
parent 8993affdc0
commit ca91bb2f7f

View file

@ -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)