Skip to content
This repository was archived by the owner on Jul 8, 2023. It is now read-only.

Commit 7d286f8

Browse files
0xrgbNihisil
authored andcommitted
Fix problem with Windows encoding (#43)
1 parent 1667494 commit 7d286f8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

project/utils/logger.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ def set_up_logging():
2727
ch.setLevel(logging.DEBUG)
2828

2929
file_name = '{}_{}.log'.format(name_hash, datetime.datetime.now().strftime('%Y-%m-%d_%H_%M_%S'))
30-
fh = logging.FileHandler(os.path.join(logs_directory, file_name))
30+
fh = logging.FileHandler(os.path.join(logs_directory, file_name), encoding='utf-8')
3131
fh.setLevel(logging.DEBUG)
3232

3333
formatter = logging.Formatter('%(asctime)s %(levelname)s: %(message)s', datefmt='%Y-%m-%d %H:%M:%S')

0 commit comments

Comments
 (0)