From 81c7fb829e77b3575671b824f12ef2961cba29af Mon Sep 17 00:00:00 2001 From: vishnuchalla Date: Mon, 13 May 2024 12:53:34 -0400 Subject: [PATCH] Updating logger config for easy debugging (#35) Signed-off-by: KBOCPDocs --- utils/orion_funcs.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/utils/orion_funcs.py b/utils/orion_funcs.py index 1359367..0d7909d 100644 --- a/utils/orion_funcs.py +++ b/utils/orion_funcs.py @@ -178,7 +178,7 @@ def set_logging(level, logger): handler = logging.StreamHandler(sys.stdout) handler.setLevel(level) formatter = logging.Formatter( - "%(asctime)s - %(name)s - %(levelname)s - %(message)s" + "%(asctime)s [%(name)s:%(filename)s:%(lineno)d] %(levelname)s: %(message)s" ) handler.setFormatter(formatter) logger.addHandler(handler)