summary refs log tree commit diff
path: root/synapse/logging/context.py
diff options
context:
space:
mode:
authorBrendan Abolivier <babolivier@matrix.org>2020-03-10 14:40:28 +0000
committerBrendan Abolivier <babolivier@matrix.org>2020-03-10 14:40:28 +0000
commitdc6fb56c5ffb41d907b7fd645a701c2d9684afc3 (patch)
tree5d424c90a1ab60fcce7b5fead976fc678a4a4c13 /synapse/logging/context.py
parentAttempt at appeasing the gods of mypy (diff)
downloadsynapse-dc6fb56c5ffb41d907b7fd645a701c2d9684afc3.tar.xz
Hopefully mypy is happy now
Diffstat (limited to 'synapse/logging/context.py')
-rw-r--r--synapse/logging/context.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/synapse/logging/context.py b/synapse/logging/context.py
index 56805120be..860b99a4c6 100644
--- a/synapse/logging/context.py
+++ b/synapse/logging/context.py
@@ -210,7 +210,7 @@ class LoggingContext(object):
     class Sentinel(object):
         """Sentinel to represent the root context"""
 
-        __slots__ = ["previous_context", "alive", "request", "scope"]
+        __slots__ = ["previous_context", "alive", "request", "scope", "tag"]
 
         def __init__(self) -> None:
             # Minimal set for compatibility with LoggingContext
@@ -218,6 +218,7 @@ class LoggingContext(object):
             self.alive = None
             self.request = None
             self.scope = None
+            self.tag = None
 
         def __str__(self):
             return "sentinel"