From d6ed4b0d5b2efd43fd9343ee756ee80f58318e94 Mon Sep 17 00:00:00 2001 From: Tobias Henkel Date: Wed, 18 May 2022 11:51:27 +0200 Subject: [PATCH] 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 --- nodepool/launcher.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/nodepool/launcher.py b/nodepool/launcher.py index a993c9284..d942751b2 100644 --- a/nodepool/launcher.py +++ b/nodepool/launcher.py @@ -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")