Default logging level on startup.

This commit is contained in:
redxef 2022-10-13 11:45:03 +02:00
parent 39923a0c5f
commit df0beec957
Signed by: redxef
GPG key ID: 7DAC3AA211CBD921

View file

@ -182,7 +182,7 @@ def set_logging_level(level: str):
@click.option('--range', '-r', envvar='WP_CAL_RANGE', default=None, help='The time range from start to start + range to synchronize events')
def main(config, dryrun, level, range):
init_logging()
set_logging_level(level)
set_logging_level(':DEBUG')
config_overrides = [('logging.level', level), ('range', range)]
config_overrides = [x for x in config_overrides if x[1] is not None]