mirror of
https://mau.dev/maunium/synapse.git
synced 2024-09-01 15:11:58 +00:00
Revert log context change
This commit is contained in:
parent
6194a64ae9
commit
b282fe7170
@ -315,9 +315,6 @@ def preserve_context_over_deferred(deferred, context=None):
|
|||||||
the deferred follow the synapse logcontext rules: try
|
the deferred follow the synapse logcontext rules: try
|
||||||
``make_deferred_yieldable`` instead.
|
``make_deferred_yieldable`` instead.
|
||||||
"""
|
"""
|
||||||
if not isinstance(deferred, defer.Deferred):
|
|
||||||
return deferred
|
|
||||||
|
|
||||||
if context is None:
|
if context is None:
|
||||||
context = LoggingContext.current_context()
|
context = LoggingContext.current_context()
|
||||||
d = _PreservingContextDeferred(context)
|
d = _PreservingContextDeferred(context)
|
||||||
|
Loading…
Reference in New Issue
Block a user