fix(cli): Defaul logging level should be WARNING
continuous-integration/woodpecker the build was successful Details

This commit is contained in:
Ferdinand Thiessen 2021-12-18 02:12:19 +01:00
parent ee839ce6a3
commit ab093c04bd
1 changed files with 2 additions and 2 deletions

View File

@ -33,14 +33,14 @@ def verbosity(ctx, param, value):
"""Toggle verbosity between WARNING <-> DEBUG""" """Toggle verbosity between WARNING <-> DEBUG"""
if not value or ctx.resilient_parsing: if not value or ctx.resilient_parsing:
return return
configure_logger(cli=40 - max(0, min(value * 10, 30))) configure_logger(cli=30 - max(0, min(value * 10, 20)))
@click.group( @click.group(
cls=FlaskGroup, cls=FlaskGroup,
add_version_option=False, add_version_option=False,
add_default_commands=False, add_default_commands=False,
create_app=lambda: create_app(cli=True), create_app=lambda: create_app(cli=30),
) )
@click.option( @click.option(
"--version", "--version",