Skip to content
Snippets Groups Projects
Commit 1e4c4d1c authored by Pavel Kácha's avatar Pavel Kácha
Browse files

Log files are now explicitly UTF-8 to avoid balking on unusual data

parent 6a83cd09
No related branches found
No related tags found
No related merge requests found
...@@ -281,7 +281,8 @@ class Client(object): ...@@ -281,7 +281,8 @@ class Client(object):
fl = logging.FileHandler( fl = logging.FileHandler(
filename=path.join( filename=path.join(
path.dirname(__file__), path.dirname(__file__),
filelog.get("file", "%s.log" % self.name))) filelog.get("file", "%s.log" % self.name)),
encoding="utf-8")
fl.setLevel(loglevel(filelog.get("level", "debug"))) fl.setLevel(loglevel(filelog.get("level", "debug")))
fl.setFormatter(format_time) fl.setFormatter(format_time)
self.logger.addHandler(fl) self.logger.addHandler(fl)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment