mirror of
https://gitlab.com/RemixDev/deemix-py.git
synced 2025-01-01 12:46:11 +00:00
Fixed utf-8 logging on Windows
This commit is contained in:
parent
00885ae674
commit
56ebc0aa0f
|
@ -120,7 +120,7 @@ class Settings:
|
|||
makedirs(logspath, exist_ok=True)
|
||||
|
||||
# Add handler for logging
|
||||
fh = logging.FileHandler(path.join(logspath, logfile))
|
||||
fh = logging.FileHandler(path.join(logspath, logfile), 'w', 'utf-8')
|
||||
fh.setLevel(logging.DEBUG)
|
||||
fh.setFormatter(logging.Formatter('%(asctime)s - [%(levelname)s] %(message)s'))
|
||||
logger.addHandler(fh)
|
||||
|
|
Loading…
Reference in a new issue