From c0687a8184456fddb25625f83d6baa3d58e24027 Mon Sep 17 00:00:00 2001 From: Till Skrodzki Date: Sat, 23 Sep 2023 08:54:03 +0300 Subject: [PATCH] Add sucess line for DB Cleanup --- mapadroid/db/DbCleanup.py | 1 + 1 file changed, 1 insertion(+) diff --git a/mapadroid/db/DbCleanup.py b/mapadroid/db/DbCleanup.py index d39151de2..7aee027ff 100644 --- a/mapadroid/db/DbCleanup.py +++ b/mapadroid/db/DbCleanup.py @@ -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)