From 21fb19f6738ee9aa79081d995ae80eb11769f0af Mon Sep 17 00:00:00 2001 From: Massimiliano Belletti Date: Sun, 25 Aug 2024 14:25:08 +0200 Subject: [PATCH] fix formatter --- py4web/server_adapters/logging_utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/py4web/server_adapters/logging_utils.py b/py4web/server_adapters/logging_utils.py index 64ccc560..684a2ddd 100644 --- a/py4web/server_adapters/logging_utils.py +++ b/py4web/server_adapters/logging_utils.py @@ -32,7 +32,7 @@ def make_logger(name, loggers_info): handler = logging.StreamHandler(getattr(sys, filename)) else: handler = logging.FileHandler(filename) - handler.setFormatter(formatter) + handler.setFormatter(logging.Formatter(formatter)) handler.setLevel(getattr(logging, level.upper(), "DEBUG")) root.addHandler(handler) return root