Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitcd6a8b1

Browse files
committed
fix(log): add encoding to RotatingFileHandler for proper log file handling
1 parentd0dbe89 commitcd6a8b1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

‎src/core/log.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111

1212
definit_logger():
1313
logging.basicConfig(
14-
handlers=[RotatingFileHandler(join(get_config_dir(),DEFAULT_LOG_FILENAME),maxBytes=1024*1024,backupCount=5)],
14+
handlers=[RotatingFileHandler(join(get_config_dir(),DEFAULT_LOG_FILENAME),maxBytes=1024*1024,backupCount=5,encoding='utf-8')],
1515
level=logging.DEBUG,
1616
format=LOG_FORMAT,
1717
datefmt=LOG_DATETIME,

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp