From 16c8cfee57b4772b7d5038ca493464c0540e163e Mon Sep 17 00:00:00 2001
From: Jan David Mol <mol@astron.nl>
Date: Mon, 27 Sep 2021 09:51:24 +0200
Subject: [PATCH] L2SS-340: Ignore packets without timestamp, log reason why we
 stopped processing.

---
 devices/statistics_writer/statistics_writer.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/devices/statistics_writer/statistics_writer.py b/devices/statistics_writer/statistics_writer.py
index 5e06a4904..1bf9618df 100644
--- a/devices/statistics_writer/statistics_writer.py
+++ b/devices/statistics_writer/statistics_writer.py
@@ -56,10 +56,10 @@ if __name__ == "__main__":
             writer.next_packet(packet)
     except KeyboardInterrupt:
         # user abort, don't complain
-        pass
+        logger.warning("Received keyboard interrupt. Stopping.")
     except EOFError:
         # done processing all input, don't complain
-        pass
+        logger.info("End of input.")
     finally:
         writer.close_writer()
 
-- 
GitLab