mirror of
https://github.com/ArchipelagoMW/Archipelago.git
synced 2026-05-18 11:41:57 -07:00
core: Reconfigure stdout to utf8 (#5017)
This commit is contained in:
@@ -540,6 +540,7 @@ def init_logging(name: str, loglevel: typing.Union[str, int] = logging.INFO,
|
||||
if add_timestamp:
|
||||
stream_handler.setFormatter(formatter)
|
||||
root_logger.addHandler(stream_handler)
|
||||
sys.stdout.reconfigure(encoding="utf-8", errors="replace")
|
||||
|
||||
# Relay unhandled exceptions to logger.
|
||||
if not getattr(sys.excepthook, "_wrapped", False): # skip if already modified
|
||||
|
||||
Reference in New Issue
Block a user