diff options
| author | 2019-10-09 17:54:12 +0100 | |
|---|---|---|
| committer | 2019-10-09 17:54:12 +0100 | |
| commit | 51a4a4253c99cc4d3b8f3999924e345586aa9aee (patch) | |
| tree | b1238ad7744e97adc7ab83d9bca053b1f6176282 | |
| parent | stdout output should just be WARN - put INFO in to a daily file (diff) | |
| signature | ||
`-V` command line arg should still effect stdout
| -rw-r--r-- | src/Logging.py | 2 | ||||
| -rwxr-xr-x | start.py | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/Logging.py b/src/Logging.py index 94114a51..8c141c8f 100644 --- a/src/Logging.py +++ b/src/Logging.py @@ -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) @@ -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) |
