Flipped the handlers
This commit is contained in:
@@ -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)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user