Add more logs to cleanup workers

Add start/end logs around the cleanup method so we can see the time it
takes to run.

Change-Id: I7504a57b5dbc9af181939622ff26ba0c26fc57b2
This commit is contained in:
Tobias Henkel 2022-05-18 11:51:27 +02:00 committed by Simon Westphahl
parent a64adca5da
commit d6ed4b0d5b
1 changed files with 2 additions and 0 deletions

View File

@ -434,7 +434,9 @@ class BaseCleanupWorker(threading.Thread):
if did_suspend:
self.log.info("ZooKeeper available. Resuming")
self.log.info('Starting cleanup')
self._run()
self.log.info('Finished cleanup')
self._stop_event.wait(self._interval)
self.log.info("Stopped")