diff options
author | Brendan Abolivier <babolivier@matrix.org> | 2020-03-10 14:40:28 +0000 |
---|---|---|
committer | Brendan Abolivier <babolivier@matrix.org> | 2020-03-10 14:40:28 +0000 |
commit | dc6fb56c5ffb41d907b7fd645a701c2d9684afc3 (patch) | |
tree | 5d424c90a1ab60fcce7b5fead976fc678a4a4c13 /synapse/logging | |
parent | Attempt at appeasing the gods of mypy (diff) | |
download | synapse-dc6fb56c5ffb41d907b7fd645a701c2d9684afc3.tar.xz |
Hopefully mypy is happy now
Diffstat (limited to 'synapse/logging')
-rw-r--r-- | synapse/logging/context.py | 3 |
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" |