Skip to content

Commit

Permalink
#786 avoid unicode errors in network layer when forwarding log messages
Browse files Browse the repository at this point in the history
git-svn-id: https://xpra.org/svn/Xpra/trunk@8689 3bb7dfac-3a0b-4e04-842a-767bc560f471
  • Loading branch information
totaam committed Feb 21, 2015
1 parent 36f6974 commit 7a3c52e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/xpra/client/ui_client_base.py
Original file line number Diff line number Diff line change
Expand Up @@ -1412,11 +1412,11 @@ def remote_logging_handler(self, log, level, msg, *args, **kwargs):
return
self.in_remote_logging = True
try:
self.send("logging", level, msg % args)
self.send("logging", level, str(msg % args))
exc_info = kwargs.get("exc_info")
if exc_info:
for x in traceback.format_tb(exc_info[2]):
self.send("logging", level, x)
self.send("logging", level, str(x))
except Exception as e:
import logging
self.local_logging(logging.WARNING, "failed to send logging packet: %s" % e)
Expand Down

0 comments on commit 7a3c52e

Please sign in to comment.