summary refs log tree commit diff
path: root/synapse/logging/context.py
diff options
context:
space:
mode:
authorAndrew Morgan <andrew@amorgan.xyz>2020-01-14 10:37:32 +0000
committerAndrew Morgan <andrew@amorgan.xyz>2020-01-14 10:37:32 +0000
commita099ab7d380d3bf3b566d93454ecce80e29b661f (patch)
tree89ac833f8b24ec03542908a8f3db20be4cc596e4 /synapse/logging/context.py
parentMerge branch 'erikj/media_admin_apis' of github.com:matrix-org/synapse into m... (diff)
parentQuarantine media by ID or user ID (#6681) (diff)
downloadsynapse-a099ab7d380d3bf3b566d93454ecce80e29b661f.tar.xz
Merge branch 'develop' of github.com:matrix-org/synapse into matrix-org-hotfixes
Diffstat (limited to 'synapse/logging/context.py')
-rw-r--r--synapse/logging/context.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/synapse/logging/context.py b/synapse/logging/context.py

index 33b322209d..1b940842f6 100644 --- a/synapse/logging/context.py +++ b/synapse/logging/context.py
@@ -571,6 +571,9 @@ def run_in_background(f, *args, **kwargs): yield or await on (for instance because you want to pass it to deferred.gatherResults()). + If f returns a Coroutine object, it will be wrapped into a Deferred (which will have + the side effect of executing the coroutine). + Note that if you completely discard the result, you should make sure that `f` doesn't raise any deferred exceptions, otherwise a scary-looking CRITICAL error about an unhandled error will be logged without much