From c53c0adb3be6b0755d0c839363c4ca043b9f20ae Mon Sep 17 00:00:00 2001 From: Furkan Date: Sat, 12 Oct 2024 22:10:49 +0300 Subject: [PATCH] feat: add log --- src/daq/store/csv.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/daq/store/csv.py b/src/daq/store/csv.py index 5351068..9386d34 100644 --- a/src/daq/store/csv.py +++ b/src/daq/store/csv.py @@ -111,6 +111,9 @@ def store_loop(self): if len(rows_to_write) > 0: total_rows_to_write += len(rows_to_write) writer.writerows(rows_to_write) + self._logger.debug( + f"Wrote {len(rows_to_write)} rows to '{file.file.name}'" + ) # Flush if the flush time is up if self._flush(file):