mirror of
https://github.com/element-hq/synapse
synced 2024-09-05 13:00:06 +00:00
Change logcontext warns to debug
This commit is contained in:
parent
2bb5f035af
commit
c486b7b41c
1 changed files with 3 additions and 3 deletions
|
@ -231,7 +231,7 @@ class PreserveLoggingContext(object):
|
||||||
if self.current_context:
|
if self.current_context:
|
||||||
self.has_parent = self.current_context.parent_context is not None
|
self.has_parent = self.current_context.parent_context is not None
|
||||||
if not self.current_context.alive:
|
if not self.current_context.alive:
|
||||||
logger.warn(
|
logger.debug(
|
||||||
"Entering dead context: %s",
|
"Entering dead context: %s",
|
||||||
self.current_context,
|
self.current_context,
|
||||||
)
|
)
|
||||||
|
@ -241,14 +241,14 @@ 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.warn(
|
logger.debug(
|
||||||
"Unexpected logging context: %s is not %s",
|
"Unexpected logging context: %s is not %s",
|
||||||
context, self.new_context,
|
context, self.new_context,
|
||||||
)
|
)
|
||||||
|
|
||||||
if self.current_context is not LoggingContext.sentinel:
|
if self.current_context is not LoggingContext.sentinel:
|
||||||
if not self.current_context.alive:
|
if not self.current_context.alive:
|
||||||
logger.warn(
|
logger.debug(
|
||||||
"Restoring dead context: %s",
|
"Restoring dead context: %s",
|
||||||
self.current_context,
|
self.current_context,
|
||||||
)
|
)
|
||||||
|
|
Loading…
Reference in a new issue