Skip to content
Snippets Groups Projects
Commit ca91bb2f authored by Mark Haines's avatar Mark Haines
Browse files

Sometimes there isn't a current logging context

parent 8993affd
No related branches found
No related tags found
No related merge requests found
...@@ -38,7 +38,7 @@ class Clock(object): ...@@ -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)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment