From 98576418a8658deede0ece94fb13b8bc1669c116 Mon Sep 17 00:00:00 2001 From: Nicolas Mowen Date: Tue, 1 Aug 2023 05:26:45 -0600 Subject: [PATCH] Improve Storage Logs (#7338) * Make storage maintenance messages more clear * Log when storage maintenance is happening * Formatting --- frigate/storage.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/frigate/storage.py b/frigate/storage.py index 2088ea57c..640559b14 100644 --- a/frigate/storage.py +++ b/frigate/storage.py @@ -153,7 +153,7 @@ class StorageMaintainer(threading.Thread): # check if need to delete retained segments if deleted_segments_size < hourly_bandwidth: logger.error( - f"Could not clear {hourly_bandwidth} currently {deleted_segments_size}, retained recordings must be deleted." + f"Could not clear {hourly_bandwidth} MB, currently {deleted_segments_size} MB have been cleared. Retained recordings must be deleted." ) recordings = Recordings.select().order_by(Recordings.start_time.asc()) @@ -185,6 +185,9 @@ class StorageMaintainer(threading.Thread): logger.debug(f"Default camera bandwidths: {self.camera_storage_stats}.") if self.check_storage_needs_cleanup(): + logger.info( + "Less than 1 hour of recording space left, running storage maintenance..." + ) self.reduce_storage_consumption() logger.info("Exiting storage maintainer...")