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
"""
|