Commits

Ginés Martínez Sánchez committed 3ebf9cd Draft

investigating bug when json data is too long

  • Participants
  • Parent commits 51c7486

Comments (0)

Files changed (1)

File ginsfsm/router.py

     """
     websocket = event.source[-1]
     msg = event.data
+    print("KKKKKKKKKKKKKKKKKKjson_decode:\n%s" % (hexdump('<==', msg)))
+
     try:
         msg = json_decode(msg)
     except Exception as e:
-        self.logger.error(
-            "ERROR %s:\n%s" % (e, hexdump('<==', msg)),
-            exc_info=True,
+        self.logger.exception(
+            "ERROR json_decode %s:\n%s" % (e, hexdump('<==', msg)),
         )
         return
     self.send_event(