always treat entity as unicode() when outputting it to logging
This commit is contained in:
parent
5063966772
commit
5e1636237e
|
@ -815,7 +815,7 @@ class YowsupAppLayer(YowInterfaceLayer):
|
|||
|
||||
@ProtocolEntityCallback('message')
|
||||
def onMessageReceived(self, entity):
|
||||
self.logger.debug("Received Message: %s" % entity)
|
||||
self.logger.debug("Received Message: %s" % unicode(entity))
|
||||
if entity.getType() == MessageProtocolEntity.MESSAGE_TYPE_TEXT:
|
||||
self.caller.onTextMessage(
|
||||
entity._id,
|
||||
|
|
Loading…
Reference in a new issue