Skip to content

Commit

Permalink
fix(logging): remove encoding parameter from RotatingFileHandler
Browse files Browse the repository at this point in the history
  • Loading branch information
amnweb committed Feb 9, 2025
1 parent 275e2dd commit dc1b1a2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/log.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@

def init_logger():
logging.basicConfig(
handlers=[RotatingFileHandler(join(get_config_dir(), DEFAULT_LOG_FILENAME), maxBytes=1024*1024, backupCount=5, encoding='utf-8')],
handlers=[RotatingFileHandler(join(get_config_dir(), DEFAULT_LOG_FILENAME), maxBytes=1024*1024, backupCount=5)],
level=logging.DEBUG,
format=LOG_FORMAT,
datefmt=LOG_DATETIME,
Expand Down

0 comments on commit dc1b1a2

Please # to comment.