Skip to content

Commit

Permalink
fixed logging with unicode. fixes #96
Browse files Browse the repository at this point in the history
  • Loading branch information
ekalinin committed Jul 21, 2015
1 parent 9a59823 commit da77f3a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion nodeenv.py
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,7 @@ def create_logger():
def emit(self, record):
msg = self.format(record)
fs = "%s" if getattr(record, "continued", False) else "%s\n"
self.stream.write(fs % msg)
self.stream.write(fs % to_utf8(msg))
self.flush()
logging.StreamHandler.emit = emit

Expand Down

0 comments on commit da77f3a

Please # to comment.