Skip to content

Commit

Permalink
Fix logger encoding, forcing utf-8 (richibrics#91)
Browse files Browse the repository at this point in the history
  • Loading branch information
SiriosDev authored Jan 9, 2024
1 parent 57650fe commit f3ce160
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion IoTuring/Logger/Logger.py
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ def ColoredPrint(self, string, loglevel: LogLevel) -> None:

def GetLogFileDescriptor(self) -> TextIOWrapper:
if self.log_file_descriptor is None:
self.log_file_descriptor = open(self.log_filename, "a")
self.log_file_descriptor = open(self.log_filename, "a", encoding="utf-8")

return self.log_file_descriptor

Expand Down

0 comments on commit f3ce160

Please sign in to comment.