diff options
author | Richard van der Hoff <richard@matrix.org> | 2018-03-09 13:56:26 +0000 |
---|---|---|
committer | Richard van der Hoff <richard@matrix.org> | 2018-03-15 18:40:38 +0000 |
commit | 5a6e54264d3a9f8b9b1f2e99db94e31ea3c21d24 (patch) | |
tree | f07b3cdaeddbef42864e15fe957f77b843b265fa /synapse | |
parent | Merge pull request #2995 from matrix-org/erikj/enable_membership_worker (diff) | |
download | synapse-5a6e54264d3a9f8b9b1f2e99db94e31ea3c21d24.tar.xz |
Make 'unexpected logging context' into warnings
I think we've now fixed enough of these that the rest can be logged at warning.
Diffstat (limited to 'synapse')
-rw-r--r-- | synapse/util/logcontext.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/synapse/util/logcontext.py b/synapse/util/logcontext.py index d660ec785b..fdd4a93d07 100644 --- a/synapse/util/logcontext.py +++ b/synapse/util/logcontext.py @@ -163,7 +163,7 @@ class LoggingContext(object): current = self.set_current_context(self.previous_context) if current is not self: if current is self.sentinel: - logger.debug("Expected logging context %s has been lost", self) + logger.warn("Expected logging context %s has been lost", self) else: logger.warn( "Current logging context %s is not expected context %s", @@ -278,7 +278,7 @@ class PreserveLoggingContext(object): context = LoggingContext.set_current_context(self.current_context) if context != self.new_context: - logger.debug( + logger.warn( "Unexpected logging context: %s is not %s", context, self.new_context, ) |