Change logcontext warns to debug

This commit is contained in:
Erik Johnston 2016-02-09 09:20:06 +00:00
parent 2bb5f035af
commit c486b7b41c

View File

@ -231,7 +231,7 @@ class PreserveLoggingContext(object):
if self.current_context:
self.has_parent = self.current_context.parent_context is not None
if not self.current_context.alive:
logger.warn(
logger.debug(
"Entering dead context: %s",
self.current_context,
)
@ -241,14 +241,14 @@ class PreserveLoggingContext(object):
context = LoggingContext.set_current_context(self.current_context)
if context != self.new_context:
logger.warn(
logger.debug(
"Unexpected logging context: %s is not %s",
context, self.new_context,
)
if self.current_context is not LoggingContext.sentinel:
if not self.current_context.alive:
logger.warn(
logger.debug(
"Restoring dead context: %s",
self.current_context,
)