From ceba9ff0e37482b48b84977718ff0bb6c60d2c72 Mon Sep 17 00:00:00 2001 From: Kim Date: Sun, 8 Aug 2021 14:15:26 +0200 Subject: [PATCH] fix string to bool --- loghandler.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/loghandler.py b/loghandler.py index 189135a..2c623fe 100644 --- a/loghandler.py +++ b/loghandler.py @@ -7,6 +7,8 @@ import colorlog def loghandler(): debug_mode = os.getenv('DEBUG_MODE', False) + if debug_mode.lower() == "false": + debug_mode = False _logger = colorlog.getLogger(__name__) if debug_mode: