diff --git a/zuul/rpclistener.py b/zuul/rpclistener.py index 12d46e8754..b5f03b4dba 100644 --- a/zuul/rpclistener.py +++ b/zuul/rpclistener.py @@ -377,7 +377,12 @@ class RPCListener(RPCListenerBase): def handle_status_get(self, job): args = json.loads(job.arguments) + start = time.monotonic() output = self.sched.formatStatusJSON(args.get("tenant")) + end = time.monotonic() + self.log.debug('Formatting tenant %s status took %.3f seconds for ' + '%d bytes', args.get("tenant"), end - start, + len(output)) job.sendWorkComplete(output) def handle_job_get(self, gear_job):