]> www.average.org Git - loctrkd.git/blobdiff - gps303/collector.py
improve diagnistic message about left data
[loctrkd.git] / gps303 / collector.py
index 8adaeb36fa4671b7f60f7409ecec45e320806215..4fc946c3dcb7795a6ff414411d5b44d757b97d4f 100644 (file)
@@ -87,7 +87,9 @@ class Client:
         else:
             rest = b""
         if rest:
-            log.warning("%d bytes in buffer on close: %s", len(rest), rest)
+            log.warning(
+                "%d bytes in buffer on close: %s", len(rest), rest[:64].hex()
+            )
 
     def recv(self) -> Optional[List[Tuple[float, Tuple[str, int], bytes]]]:
         """Read from the socket and parse complete messages"""