aboutsummaryrefslogtreecommitdiff
path: root/bitbotd
diff options
context:
space:
mode:
Diffstat (limited to 'bitbotd')
-rwxr-xr-xbitbotd5
1 files changed, 4 insertions, 1 deletions
diff --git a/bitbotd b/bitbotd
index e3962dde..a77c0af0 100755
--- a/bitbotd
+++ b/bitbotd
@@ -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])