From 4aa8d63e5fbe5f5e37b72a9e090c747e1e5a15e3 Mon Sep 17 00:00:00 2001 From: Halali Date: Wed, 27 Nov 2019 22:05:09 +0100 Subject: [PATCH] add UTF-8 encoding for log file --- bazarr/logger.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bazarr/logger.py b/bazarr/logger.py index 7edcac8f4..79075e18f 100644 --- a/bazarr/logger.py +++ b/bazarr/logger.py @@ -67,7 +67,7 @@ def configure_logging(debug=False): # File Logging global fh fh = TimedRotatingFileHandler(os.path.join(args.config_dir, 'log/bazarr.log'), when="midnight", interval=1, - backupCount=7, delay=True) + backupCount=7, delay=True, encoding='utf-8') f = OneLineExceptionFormatter('%(asctime)s|%(levelname)-8s|%(name)-32s|%(message)s|', '%d/%m/%Y %H:%M:%S') fh.setFormatter(f)