From d6d5b6c95b677d98777959040bac808e4c5499c7 Mon Sep 17 00:00:00 2001
From: Eugene Crosser <crosser@average.org>
Date: Mon, 4 Jul 2022 16:30:51 +0200
Subject: [PATCH] improve diagnistic message about left data

---
 gps303/collector.py | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/gps303/collector.py b/gps303/collector.py
index 8adaeb3..4fc946c 100644
--- a/gps303/collector.py
+++ b/gps303/collector.py
@@ -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"""
-- 
2.43.0