mirror of
https://github.com/morpheus65535/bazarr
synced 2024-12-26 01:27:07 +00:00
add UTF-8 encoding for log file
This commit is contained in:
parent
5007d983e3
commit
4aa8d63e5f
1 changed files with 1 additions and 1 deletions
|
@ -67,7 +67,7 @@ def configure_logging(debug=False):
|
||||||
# File Logging
|
# File Logging
|
||||||
global fh
|
global fh
|
||||||
fh = TimedRotatingFileHandler(os.path.join(args.config_dir, 'log/bazarr.log'), when="midnight", interval=1,
|
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|',
|
f = OneLineExceptionFormatter('%(asctime)s|%(levelname)-8s|%(name)-32s|%(message)s|',
|
||||||
'%d/%m/%Y %H:%M:%S')
|
'%d/%m/%Y %H:%M:%S')
|
||||||
fh.setFormatter(f)
|
fh.setFormatter(f)
|
||||||
|
|
Loading…
Reference in a new issue