From 61f050e3292ce0037b16f4b515ebcab3bb7dd46a Mon Sep 17 00:00:00 2001 From: jesopo Date: Fri, 10 Apr 2020 22:53:19 +0100 Subject: add bot.conf options so we can disable given log files --- bitbotd | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'bitbotd') 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]) -- cgit v1.3.1-10-gc9f91