Log when storage maintenance is happening

This commit is contained in:
Nicolas Mowen 2023-07-31 07:56:46 -06:00 committed by GitHub
parent 26cc34dbf7
commit 3ee906191c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -185,6 +185,7 @@ class StorageMaintainer(threading.Thread):
logger.debug(f"Default camera bandwidths: {self.camera_storage_stats}.") logger.debug(f"Default camera bandwidths: {self.camera_storage_stats}.")
if self.check_storage_needs_cleanup(): if self.check_storage_needs_cleanup():
logger.info("Less than 1 hour of recording space left, running storage maintenance...")
self.reduce_storage_consumption() self.reduce_storage_consumption()
logger.info("Exiting storage maintainer...") logger.info("Exiting storage maintainer...")