aboutsummaryrefslogtreecommitdiff
path: root/bitbotd
diff options
context:
space:
mode:
authorGravatar jesopo2020-04-10 22:53:19 +0100
committerGravatar jesopo2020-04-10 22:54:21 +0100
commit32e2156e1eca7b5bb245d73c7ed97c0ca4fead4a (patch)
tree1e353642200a62b51f528f9f4b9de989b970c852 /bitbotd
parentv1.19.0 release (diff)
signature
add bot.conf options so we can disable given log files
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])