]> www.average.org Git - loctrkd.git/blobdiff - loctrkd/watch.py
protocols: introduce method `rectified()`
[loctrkd.git] / loctrkd / watch.py
index 8e962bc2278dcef0b8eda170116dae0be702df2a..6d3dcd9fa8ed7eb1f4eba1cdacd266549e9b2519 100644 (file)
@@ -37,6 +37,8 @@ def runserver(conf: ConfigParser) -> None:
                 if pmod.proto_handled(zmsg.proto):
                     msg = pmod.parse_message(zmsg.packet, zmsg.is_incoming)
                     print(msg)
+                    if zmsg.is_incoming and hasattr(msg, "rectified"):
+                        print(msg.rectified())
     except KeyboardInterrupt:
         pass