Skip to content

Commit

Permalink
Merge pull request #2526 from zhuangzhuang/master
Browse files Browse the repository at this point in the history
fix logger file encoding error.
  • Loading branch information
egorpugin authored Jun 28, 2019
2 parents 653faa3 + a3a361f commit 89de2bf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/training/tesstrain.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ def setup_logging_console():


def setup_logging_logfile(logfile):
logfile = logging.FileHandler(logfile)
logfile = logging.FileHandler(logfile, encoding='utf-8')
logfile.setLevel(logging.DEBUG)
logfile_formatter = logging.Formatter(
"[%(asctime)s] - %(levelname)s - %(name)s - %(message)s"
Expand Down

0 comments on commit 89de2bf

Please sign in to comment.