From bc13e224c8d52c0999bb4b06b38a195b7ea868a1 Mon Sep 17 00:00:00 2001 From: Jevgeni Kiski Date: Wed, 10 Feb 2021 15:40:19 +0200 Subject: [PATCH] #199 LOGGING_FILE can be empty string. --- paradox/main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/paradox/main.py b/paradox/main.py index 57b88e03..7684b25e 100755 --- a/paradox/main.py +++ b/paradox/main.py @@ -30,7 +30,7 @@ def get_format(level): def config_logger(logger): logger_level = cfg.LOGGING_LEVEL_CONSOLE - if cfg.LOGGING_FILE is not None: + if cfg.LOGGING_FILE: logfile_handler = RotatingFileHandler( cfg.LOGGING_FILE, mode="a",