Skip to content

Commit

Permalink
set log file encoding to UTF-8
Browse files Browse the repository at this point in the history
  • Loading branch information
stefan.schirmeister committed Aug 2, 2023
1 parent c9f043e commit 1ed378e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ebus_toolbox/util.py
Original file line number Diff line number Diff line change
Expand Up @@ -230,7 +230,7 @@ def setup_logging(args, time_str):
log_name = f"{time_str}.log"
log_path = args.output_directory / log_name
print(f"Writing log to {log_path}")
log_handlers.append(logging.FileHandler(log_path))
log_handlers.append(logging.FileHandler(log_path, encoding='utf-8'))
logging.basicConfig(
level=vars(logging)[args.loglevel],
format="%(asctime)s [%(levelname)s] %(message)s",
Expand Down

0 comments on commit 1ed378e

Please sign in to comment.