0
0
Fork 1
mirror of https://mau.dev/maunium/synapse.git synced 2024-12-13 17:33:32 +01:00

verbose by default please

This commit is contained in:
Matthew Hodgson 2014-08-13 12:06:58 +01:00
parent ebfc4389ad
commit 2a0f7541c7

View file

@ -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)