From be37d4cffe904dd2a04b260ceabeed4245dffdbf Mon Sep 17 00:00:00 2001 From: Kamil Date: Tue, 10 Dec 2024 15:41:04 +0000 Subject: [PATCH] update log format to increase function name width in logging output --- app/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/__init__.py b/app/__init__.py index bb0ef3c..cb7449c 100644 --- a/app/__init__.py +++ b/app/__init__.py @@ -103,7 +103,7 @@ for handler in app.logger.handlers: log_level = getattr(logging, app.config['LOG_LEVEL'], logging.INFO) # Default to DEBUG if invalid app.logger.setLevel(log_level) -FORMAT = "[%(asctime)s][%(filename)18s:%(lineno)4s - %(funcName)20s() ] %(levelname)7s - %(message)s" +FORMAT = "[%(asctime)s][%(filename)18s:%(lineno)4s - %(funcName)36s() ] %(levelname)7s - %(message)s" logging.basicConfig(format=FORMAT) # Add RotatingFileHandler to log to a file