]> www.average.org Git - loctrkd.git/blobdiff - loctrkd/watch.py
cleanup framing/deframing of beesure
[loctrkd.git] / loctrkd / watch.py
index ab041edc832c7ae78198ea5deb3375d9e32dff29..7221d2b716595fb05623f1f66a8d476aaeee9d3c 100644 (file)
@@ -39,11 +39,11 @@ def runserver(conf: ConfigParser) -> None:
     try:
         while True:
             zmsg = Bcast(zsub.recv())
-            print("Bcast:", zmsg)
+            print("I" if zmsg.is_incoming else "O", zmsg.proto, zmsg.imei)
             for pmod in pmods:
                 if zmsg.proto.startswith(pmod.PROTO_PREFIX):
                     msg = pmod.parse_message(zmsg.packet, zmsg.is_incoming)
-                    print("I" if zmsg.is_incoming else "O", zmsg.imei, msg)
+                    print(msg)
     except KeyboardInterrupt:
         pass