summary refs log tree commit diff
diff options
context:
space:
mode:
authorPaul "LeoNerd" Evans <paul@matrix.org>2014-12-02 22:28:18 +0000
committerPaul "LeoNerd" Evans <paul@matrix.org>2014-12-02 22:28:18 +0000
commit66b0596b7a0995cfc4ca72ba2062014e3f9b8577 (patch)
treea559c85ce33adf3ddfa93ddd10314801728485c5
parentWorkaround for non-uniqueness of room member events in the database confusing... (diff)
downloadsynapse-66b0596b7a0995cfc4ca72ba2062014e3f9b8577.tar.xz
Don't log synapse.storage at DEBUG level when under -v; require -v -v for that
-rw-r--r--synapse/config/logger.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/synapse/config/logger.py b/synapse/config/logger.py
index 8566296433..089d906fa5 100644
--- a/synapse/config/logger.py
+++ b/synapse/config/logger.py
@@ -52,12 +52,18 @@ class LoggingConfig(Config):
         if self.log_config is None:
 
             level = logging.INFO
+            level_for_storage = logging.INFO
             if self.verbosity:
                 level = logging.DEBUG
+                if self.verbosity > 1:
+                    level_for_storage = logging.DEBUG
 
             # FIXME: we need a logging.WARN for a -q quiet option
             logger = logging.getLogger('')
             logger.setLevel(level)
+
+            logging.getLogger('synapse.storage').setLevel(level_for_storage)
+
             formatter = logging.Formatter(log_format)
             if self.log_file:
                 handler = logging.FileHandler(self.log_file)