diff options
author | David Baker <dave@matrix.org> | 2014-12-18 15:06:11 +0000 |
---|---|---|
committer | David Baker <dave@matrix.org> | 2014-12-18 15:06:11 +0000 |
commit | 0a6664493a6277d6b7b78b54e0b2a6da591ad158 (patch) | |
tree | a01e93cb31ca94d83dba6a9a381997b88f5b3a25 /synapse/config/logger.py | |
parent | Thank you, pyflakes (diff) | |
parent | Merge branch 'hotfixes-v0.5.4' of github.com:matrix-org/synapse (diff) | |
download | synapse-0a6664493a6277d6b7b78b54e0b2a6da591ad158.tar.xz |
Merge branch 'master' into pushers
Diffstat (limited to 'synapse/config/logger.py')
-rw-r--r-- | synapse/config/logger.py | 6 |
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) |