summary refs log tree commit diff
path: root/synapse/logging/context.py
diff options
context:
space:
mode:
authorEric Eastwood <erice@element.io>2022-08-03 00:10:14 -0500
committerEric Eastwood <erice@element.io>2022-08-03 00:10:14 -0500
commitb6f56656ab95b26fdbaccdcf94d77211688732c7 (patch)
treea3504c10d70e4a7f665ac0f406a26d2023d87e04 /synapse/logging/context.py
parentFix table missing column (diff)
downloadsynapse-b6f56656ab95b26fdbaccdcf94d77211688732c7.tar.xz
Use latested Twisted from source to fix contextvar issues causing OTEL `Failed to detach context` errors
See https://github.com/matrix-org/synapse/pull/13400#discussion_r936195492
Diffstat (limited to 'synapse/logging/context.py')
-rw-r--r--synapse/logging/context.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/synapse/logging/context.py b/synapse/logging/context.py

index dde9c151f5..a417b13ffd 100644 --- a/synapse/logging/context.py +++ b/synapse/logging/context.py
@@ -330,8 +330,10 @@ class LoggingContext: @classmethod def current_context(cls) -> LoggingContextOrSentinel: """Get the current logging context from thread local storage + This exists for backwards compatibility. ``current_context()`` should be called directly. + Returns: LoggingContext: the current logging context """