diff options
| author | 2020-04-10 22:53:19 +0100 | |
|---|---|---|
| committer | 2020-04-10 22:53:19 +0100 | |
| commit | 61f050e3292ce0037b16f4b515ebcab3bb7dd46a (patch) | |
| tree | c10290442a4e7340019e5321cf6918d3e93b2c0a /bitbotd | |
| parent | "mi" -> "m" for minute (diff) | |
| signature | ||
add bot.conf options so we can disable given log files
Diffstat (limited to 'bitbotd')
| -rwxr-xr-x | bitbotd | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -62,7 +62,10 @@ log_level = args.log_level if not log_level: log_level = "debug" if args.verbose else "warn" -log = Logging.Log(not args.no_logging, log_level, LOG_DIR) +log_level_files = config.get("log-levels", "TRACE,INFO,WARN" + ).split(",") + +log = Logging.Log(not args.no_logging, log_level, LOG_DIR, log_level_files) log.info("Starting BitBot %s (Python v%s, db %s)", [IRCBot.VERSION, platform.python_version(), DATABASE]) |
