Commits

bb b...@gmx.de  committed 1af6b7c Draft

marshalling works for redis backend

  • Participants
  • Parent commits b69609f
  • Tags before_websocket_endpoint

Comments (0)

Files changed (2)

File araldo/marshalling/default_marshalling.py

 from araldo.marshalling import MarshallingBase
 from araldo.message import Message
 
-JSONPICKLE_TIMESTAMP_FORMAT = "%Y-%m-%d_%H:%M:%S.%f"
+JSONPICKLE_TIMESTAMP_FORMAT = "%Y-%m-%d %H:%M:%S.%f"
 
 
 class Marshalling(MarshallingBase):

File araldo/router.py

         else:
             for destination in route:
                 self._log.debug(
-                    "Routing %s --> %s", origin, destination)
+                    "Routing %s: %s --> %s", 
+                    unicode(message), origin, destination)
                 if destination not in self._outbound:
                     self._log.warning(
                         "Destination '%s' not found; not routing",
                         destination)
                     continue
                 try:
-                    self._outbound[destination].send(str(message))
+                    self._outbound[destination].send(message)
                 except Exception as error:
                     self._log.error(
                         "Exception while sending message to %s: %s",