Skip to content
Snippets Groups Projects

Fix double plog output, version 2

Merged Hans Fangohr requested to merge fix-double-plog-output-version2 into main
1 file
+ 3
2
Compare changes
  • Side-by-side
  • Inline
@@ -339,10 +339,11 @@ def set_up_logging(loglevel="warning", file_path=None):
@@ -339,10 +339,11 @@ def set_up_logging(loglevel="warning", file_path=None):
# create formatter 'empty' formatter
# create formatter 'empty' formatter
formatter = logging.Formatter("%(message)s")
formatter = logging.Formatter("%(message)s")
# create, format and add handler for shell output
# create, format and set handler for shell output
ch = logging.StreamHandler()
ch = logging.StreamHandler()
ch.setFormatter(formatter)
ch.setFormatter(formatter)
print_log.addHandler(ch)
print_log.handlers = [ch]
 
# if filename provided, write output of print_log to that file, too
# if filename provided, write output of print_log to that file, too
if file_path:
if file_path:
Loading