mirror of
https://github.com/element-hq/synapse.git
synced 2024-11-21 17:15:38 +03:00
Merge branch 'master' of github.com:matrix-org/synapse
This commit is contained in:
commit
5a59da8a94
1 changed files with 3 additions and 3 deletions
|
@ -89,12 +89,12 @@ def setup_logging(verbosity=0, filename=None, config_path=None):
|
|||
)
|
||||
|
||||
if not verbosity or verbosity == 0:
|
||||
level = logging.WARNING
|
||||
elif verbosity == 1:
|
||||
level = logging.INFO
|
||||
else:
|
||||
elif verbosity == 1:
|
||||
level = logging.DEBUG
|
||||
|
||||
# FIXME: we need a logging.WARN for a -q quiet option
|
||||
|
||||
logging.basicConfig(level=level, filename=filename, format=log_format)
|
||||
else:
|
||||
logging.config.fileConfig(config_path)
|
||||
|
|
Loading…
Reference in a new issue