mirror of
https://github.com/element-hq/synapse
synced 2024-08-19 18:30:24 +00:00
Don't log synapse.storage at DEBUG level when under -v; require -v -v for that
This commit is contained in:
parent
10eb8f070c
commit
66b0596b7a
1 changed files with 6 additions and 0 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue