mirror of
https://mau.dev/maunium/synapse.git
synced 2024-12-15 06:43:50 +01:00
Make 'unexpected logging context' into warnings
I think we've now fixed enough of these that the rest can be logged at warning.
This commit is contained in:
parent
3959754de3
commit
5a6e54264d
1 changed files with 2 additions and 2 deletions
|
@ -163,7 +163,7 @@ class LoggingContext(object):
|
||||||
current = self.set_current_context(self.previous_context)
|
current = self.set_current_context(self.previous_context)
|
||||||
if current is not self:
|
if current is not self:
|
||||||
if current is self.sentinel:
|
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:
|
else:
|
||||||
logger.warn(
|
logger.warn(
|
||||||
"Current logging context %s is not expected context %s",
|
"Current logging context %s is not expected context %s",
|
||||||
|
@ -278,7 +278,7 @@ class PreserveLoggingContext(object):
|
||||||
context = LoggingContext.set_current_context(self.current_context)
|
context = LoggingContext.set_current_context(self.current_context)
|
||||||
|
|
||||||
if context != self.new_context:
|
if context != self.new_context:
|
||||||
logger.debug(
|
logger.warn(
|
||||||
"Unexpected logging context: %s is not %s",
|
"Unexpected logging context: %s is not %s",
|
||||||
context, self.new_context,
|
context, self.new_context,
|
||||||
)
|
)
|
||||||
|
|
Loading…
Reference in a new issue