fix: log encoding to utf-8
This commit is contained in:
parent
8a06d7b7e8
commit
e2fcedf2c9
2
main.py
2
main.py
@ -49,7 +49,7 @@ def setup_logging(filename):
|
|||||||
chlr = logging.StreamHandler()
|
chlr = logging.StreamHandler()
|
||||||
chlr.setFormatter(formatter)
|
chlr.setFormatter(formatter)
|
||||||
chlr.setLevel('INFO')
|
chlr.setLevel('INFO')
|
||||||
fhlr = logging.FileHandler(filename)
|
fhlr = logging.FileHandler(filename, encoding='utf-8')
|
||||||
fhlr.setFormatter(formatter)
|
fhlr.setFormatter(formatter)
|
||||||
logger.addHandler(chlr)
|
logger.addHandler(chlr)
|
||||||
logger.addHandler(fhlr)
|
logger.addHandler(fhlr)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user