From 9afdbe0ccd16d4394b9bc2d019cb8579d8f52715 Mon Sep 17 00:00:00 2001 From: Blake Blackshear Date: Fri, 3 Feb 2023 18:35:48 -0600 Subject: [PATCH] some logging for stats thread --- frigate/stats.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/frigate/stats.py b/frigate/stats.py index 459457d6e..60f805c62 100644 --- a/frigate/stats.py +++ b/frigate/stats.py @@ -283,8 +283,10 @@ class StatsEmitter(threading.Thread): def run(self) -> None: time.sleep(10) while not self.stop_event.wait(self.config.mqtt.stats_interval): + logger.debug("Starting stats collection") stats = stats_snapshot( self.config, self.stats_tracking, self.hwaccel_errors ) self.dispatcher.publish("stats", json.dumps(stats), retain=False) - logger.info(f"Exiting watchdog...") + logger.debug("Finished stats collection") + logger.info(f"Exiting stats emitter...")