Skip to content
Snippets Groups Projects
Commit ceb68e3c authored by David Douard's avatar David Douard
Browse files

cli: fix logging config in main's swh command

we want the root logger configured there, not the cli one.
parent 6b426eda
No related branches found
No related tags found
No related merge requests found
......@@ -20,10 +20,10 @@ logger = logging.getLogger(__name__)
help="Log level (default to INFO)")
@click.pass_context
def swh(ctx, log_level):
"""Command line interface for Software Heritage
"""Command line interface for Software Heritage.
"""
log_level = logging.getLevelName(log_level)
logger.setLevel(log_level)
logging.root.setLevel(log_level)
ctx.ensure_object(dict)
ctx.obj['log_level'] = log_level
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment