Add info logging at startup if vacuuming database (#9432)

This commit is contained in:
leccelecce 2024-01-26 13:18:29 +00:00 committed by GitHub
parent b1a034fbd4
commit 64a91f552f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -271,6 +271,7 @@ class FrigateApp:
def init_database(self) -> None: def init_database(self) -> None:
def vacuum_db(db: SqliteExtDatabase) -> None: def vacuum_db(db: SqliteExtDatabase) -> None:
logger.info("Running database vacuum")
db.execute_sql("VACUUM;") db.execute_sql("VACUUM;")
try: try: