From f5de7f2b4a438bd1fa85ac629d56b74ea5be8055 Mon Sep 17 00:00:00 2001 From: Ben van Basten Date: Fri, 8 Dec 2023 14:11:48 +0100 Subject: [PATCH] added formatter to log handler --- processing/grid_creation_algorithm.py | 1 + 1 file changed, 1 insertion(+) diff --git a/processing/grid_creation_algorithm.py b/processing/grid_creation_algorithm.py index d11f9e27..2af501f6 100644 --- a/processing/grid_creation_algorithm.py +++ b/processing/grid_creation_algorithm.py @@ -111,6 +111,7 @@ def progress_rep(progress, info): logger = logging.getLogger("threedigrid_builder.grid.connection_nodes") log_capture_string = io.StringIO() ch = logging.StreamHandler(log_capture_string) + ch.setFormatter(logging.Formatter(fmt='%(levelname)-8s :: %(message)s')) ch.setLevel(logging.DEBUG) logger.addHandler(ch) try: