From e4201a27460c5d116279fe185acc794aa1d76a16 Mon Sep 17 00:00:00 2001 From: Logan Cusano Date: Fri, 8 Apr 2022 21:46:28 -0400 Subject: [PATCH] Fixed Logging --- BotResources.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/BotResources.py b/BotResources.py index 0020b99..4e551d0 100644 --- a/BotResources.py +++ b/BotResources.py @@ -225,10 +225,10 @@ def init_global_logger(_verbose_level: str = "WARNING"): if not exists("./logs/"): os.mkdir("./logs/") fh = logging.FileHandler(f'./logs/DRB-{date.today()}.log') - fh.setLevel(logging.DEBUG) + fh.setLevel(logging.INFO) fh_debug = logging.FileHandler(f'./logs/DRB-{date.today()}.DEBUG.log') - fh_debug.setLevel(logging.WARNING) + fh_debug.setLevel(logging.DEBUG) # create terminal handler with a higher log level th = logging.StreamHandler()