diff options
-rw-r--r-- | synapse/http/site.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/synapse/http/site.py b/synapse/http/site.py index ff77fd016e..1c5651fc82 100644 --- a/synapse/http/site.py +++ b/synapse/http/site.py @@ -372,7 +372,8 @@ class SynapseRequest(Request): # that it will finish up sooner than it normally would. # The `self.processing()` context manager will call # `_finished_processing()` when done. - self.render_deferred.cancel() + with PreserveLoggingContext(): + self.render_deferred.cancel() else: logger.error( "Connection from client lost, but have no Deferred to " |