]> www.average.org Git - loctrkd.git/blobdiff - gps303/__main__.py
Work with cell location data; use opencellid
[loctrkd.git] / gps303 / __main__.py
index ef03c61eff92d9ef31dcdefba8f6920025dcb696..665615d81064d0ddde11bfe292d778f7c976f0f9 100755 (executable)
@@ -69,11 +69,18 @@ if __name__.endswith("__main__"):
                     when = time()
                     if packet:
                         msg = handle_packet(packet, clntaddr, when)
-                        log.debug("%s from %s fd %d'", msg, clntaddr, fd)
+                        log.debug("%s from %s fd %d", msg, clntaddr, fd)
                         if isinstance(msg, LOGIN):
                             imei = msg.imei
                             clnt_dict[fd] = (clntsock, clntaddr, imei)
-                        stow(clntaddr, when, imei, msg.proto, msg.payload)
+                        stow(
+                            clntaddr,
+                            when,
+                            imei,
+                            msg.length,
+                            msg.proto,
+                            msg.payload,
+                        )
                         response = make_response(msg)
                         if response:
                             try: