-V
command line arg should still effect stdout
This commit is contained in:
parent
f721cf848a
commit
51a4a4253c
2 changed files with 2 additions and 2 deletions
|
@ -29,7 +29,7 @@ class Log(object):
|
||||||
formatter = BitBotFormatter("%(asctime)s [%(levelname)s] %(message)s")
|
formatter = BitBotFormatter("%(asctime)s [%(levelname)s] %(message)s")
|
||||||
|
|
||||||
stdout_handler = logging.StreamHandler(sys.stdout)
|
stdout_handler = logging.StreamHandler(sys.stdout)
|
||||||
stdout_handler.setLevel(LEVELS["warn"])
|
stdout_handler.setLevel(stdout_level)
|
||||||
stdout_handler.setFormatter(formatter)
|
stdout_handler.setFormatter(formatter)
|
||||||
self.logger.addHandler(stdout_handler)
|
self.logger.addHandler(stdout_handler)
|
||||||
|
|
||||||
|
|
2
start.py
2
start.py
|
@ -58,7 +58,7 @@ if args.version:
|
||||||
|
|
||||||
log_level = args.log_level
|
log_level = args.log_level
|
||||||
if not 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)
|
log = Logging.Log(not args.no_logging, log_level, args.log_dir)
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue