Skip to content

Commit

Permalink
Add info logging at startup if vacuuming database
Browse files Browse the repository at this point in the history
  • Loading branch information
leccelecce committed Jan 24, 2024
1 parent 487c626 commit 45b5dd7
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions frigate/app.py
Expand Up @@ -271,6 +271,7 @@ def init_queues(self) -> None:

def init_database(self) -> None:
def vacuum_db(db: SqliteExtDatabase) -> None:
logger.info("Running database vacuum")
db.execute_sql("VACUUM;")

try:
Expand Down

0 comments on commit 45b5dd7

Please sign in to comment.