-V command line arg should still effect stdout

This commit is contained in:
jesopo 2019-10-09 17:54:12 +01:00
parent f721cf848a
commit 51a4a4253c
2 changed files with 2 additions and 2 deletions

View file

@ -29,7 +29,7 @@ class Log(object):
formatter = BitBotFormatter("%(asctime)s [%(levelname)s] %(message)s")
stdout_handler = logging.StreamHandler(sys.stdout)
stdout_handler.setLevel(LEVELS["warn"])
stdout_handler.setLevel(stdout_level)
stdout_handler.setFormatter(formatter)
self.logger.addHandler(stdout_handler)

View file

@ -58,7 +58,7 @@ if args.version:
log_level = args.log_level
if not log_level:
log_level = "debug" if args.verbose else "info"
log_level = "debug" if args.verbose else "warn"
log = Logging.Log(not args.no_logging, log_level, args.log_dir)