Skip to content

Commit

Permalink
Add sucess line for DB Cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
Grennith committed Sep 23, 2023
1 parent b537739 commit c0687a8
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions mapadroid/db/DbCleanup.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ async def _run_cleanup_routine(self):
session, MadGlobals.application_args.delete_incidents_n_hours, mon_limit)
await PokestopIncidentHelper.run_optimize(session)
await session.commit()
logger.success("Done cleaning up DB, sleeping {}s", MadGlobals.application_args.cleanup_interval)
except Exception as e:
logger.error("Failed cleaning up DB.")
logger.exception(e)
Expand Down

0 comments on commit c0687a8

Please sign in to comment.