Skip to content

Commit

Permalink
added formatter to log handler
Browse files Browse the repository at this point in the history
  • Loading branch information
benvanbasten-ns committed Dec 8, 2023
1 parent 88d3ea9 commit f5de7f2
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions processing/grid_creation_algorithm.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit f5de7f2

Please sign in to comment.