Commit af5ae886 authored by Samuel GAIST's avatar Samuel GAIST
Browse files

[scripts][main_cli] Only modify the logger format when showing debug messages

Fixes #40
parent 42b9eb48
Pipeline #21664 passed with stages
in 34 minutes and 59 seconds
......@@ -70,7 +70,7 @@ def main(ctx, test_mode, version, prefix, cache, user, token, platform, editor):
console_handler.setLevel(logging.INFO) # default level
format_str = "%(message)s"
if 'verbosity' in ctx.meta and ctx.meta['verbosity'] >= 2:
if 'verbosity' in ctx.meta and ctx.meta['verbosity'] > 2:
format_str = "[%(asctime)s - %(name)s] %(levelname)s: %(message)s"
formatter = logging.Formatter(format_str, datefmt="%d/%b/%Y %H:%M:%S")
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment