mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-02-04 02:05:21 +03:00
some logging for stats thread
This commit is contained in:
parent
0d8b5aa158
commit
9afdbe0ccd
@ -283,8 +283,10 @@ class StatsEmitter(threading.Thread):
|
|||||||
def run(self) -> None:
|
def run(self) -> None:
|
||||||
time.sleep(10)
|
time.sleep(10)
|
||||||
while not self.stop_event.wait(self.config.mqtt.stats_interval):
|
while not self.stop_event.wait(self.config.mqtt.stats_interval):
|
||||||
|
logger.debug("Starting stats collection")
|
||||||
stats = stats_snapshot(
|
stats = stats_snapshot(
|
||||||
self.config, self.stats_tracking, self.hwaccel_errors
|
self.config, self.stats_tracking, self.hwaccel_errors
|
||||||
)
|
)
|
||||||
self.dispatcher.publish("stats", json.dumps(stats), retain=False)
|
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...")
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user