Skip to content
This repository has been archived by the owner on May 21, 2021. It is now read-only.

Commit

Permalink
Merge c313373 into f3c453a
Browse files Browse the repository at this point in the history
  • Loading branch information
James Cleveland committed Jun 26, 2014
2 parents f3c453a + c313373 commit f9fded6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion omnibus/connection.py
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ def send(self, msg):
"""
`send` is used to deliver messages and command responses to client/browser.
"""
self.log('debug', u'OUT: {0}'.format(msg))
self.log('debug', u'OUT: {0}'.format(msg.decode('utf-8')))
return super(MessageConnection, self).send(msg)

def respond_command(self, command, success, payload=None):
Expand Down
4 changes: 2 additions & 2 deletions omnibus/pubsub.py
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ def send(self, msg):
the default one.
"""
try:
self.log('debug', 'send {0} to {1}'.format(msg, PUBLISHER_ADDRESS))
self.log('debug', u'send {0} to {1}'.format(msg, PUBLISHER_ADDRESS))
publisher = self.get_connection(zmq.PUB, PUBLISHER_ADDRESS)
publisher.send_unicode(msg)
except ZMQError as e:
Expand All @@ -95,7 +95,7 @@ def publish(self, channel, payload_type, payload=None, sender=None):
try:
self.log(
'debug',
'publish to {0} (payload_type:{1}, payload:{2}, sender:{3})'.format(
u'publish to {0} (payload_type:{1}, payload:{2}, sender:{3})'.format(
channel, payload_type, payload, sender))

return self.send(u'{0}:{1}'.format(
Expand Down

0 comments on commit f9fded6

Please sign in to comment.