summary refs log tree commit diff
path: root/synapse
diff options
context:
space:
mode:
authorErik Johnston <erik@matrix.org>2016-02-09 09:20:06 +0000
committerErik Johnston <erik@matrix.org>2016-02-09 09:20:38 +0000
commitc486b7b41cafeb120815a53992318f911b0d30f3 (patch)
tree263ca6003b23368773e87a5bc9186c8ea7e56484 /synapse
parentMerge pull request #564 from matrix-org/erikj/logcontext (diff)
downloadsynapse-c486b7b41cafeb120815a53992318f911b0d30f3.tar.xz
Change logcontext warns to debug
Diffstat (limited to '')
-rw-r--r--synapse/util/logcontext.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/synapse/util/logcontext.py b/synapse/util/logcontext.py
index 9134e67908..b22a36336b 100644
--- a/synapse/util/logcontext.py
+++ b/synapse/util/logcontext.py
@@ -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,
                 )