From 471f668cdb69d90b6ee26133266fa14c50a00a05 Mon Sep 17 00:00:00 2001 From: Logan Cusano Date: Thu, 31 Mar 2022 02:32:14 -0400 Subject: [PATCH] Flipped the handlers --- BotResources.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/BotResources.py b/BotResources.py index fb4169c..b8b8c43 100644 --- a/BotResources.py +++ b/BotResources.py @@ -232,8 +232,8 @@ def init_global_logger(_verbose_level: str = "WARNING"): th.setLevel(numeric_log_level) # create formatter and add it to the handlers - th_formatter = logging.Formatter('[%(asctime)s %(name)s->%(funcName)s():%(lineno)s] - %(levelname)s - %(message)s') - fh_formatter = logging.Formatter('[%(asctime)s %(name)s->%(funcName)s()] - %(levelname)s - %(message)s') + fh_formatter = logging.Formatter('[%(asctime)s %(name)s->%(funcName)s():%(lineno)s] - %(levelname)s - %(message)s') + th_formatter = logging.Formatter('[%(asctime)s %(name)s->%(funcName)s()] - %(levelname)s - %(message)s') fh.setFormatter(fh_formatter) th.setFormatter(th_formatter)