commit 4900e5d4ba9c1b927a2e6d1081dbdccb3b613c41 Author: Mariusz Karpiarz Date: Fri Sep 11 12:52:18 2020 +0100 Log the number of tenants loaded by the fetcher During initial setup it's useful to know if (and how many) billable tenants got loaded by the fetcher. Change-Id: Ib1fbfdde5535ff83f8a657b9542c117a882f802e diff --git a/cloudkitty/orchestrator.py b/cloudkitty/orchestrator.py index 97a4eaa..0087b0a 100644 --- a/cloudkitty/orchestrator.py +++ b/cloudkitty/orchestrator.py @@ -383,8 +383,8 @@ class Orchestrator(cotyledon.Service): while True: self.tenants = self.fetcher.get_tenants() random.shuffle(self.tenants) - LOG.info('[Worker: {w}] Tenants loaded for fetcher {f}'.format( - w=self._worker_id, f=self.fetcher.name)) + LOG.info('[Worker: {w}] {n} tenants loaded for fetcher {f}'.format( + w=self._worker_id, n=len(self.tenants), f=self.fetcher.name)) for tenant_id in self.tenants: