Restore number of workers in DEBUG log

This commit is contained in:
Alexis Lê-Quôc 2014-08-04 15:30:12 -04:00
parent bc2e132bce
commit 6cb67e49ca

View File

@ -482,7 +482,7 @@ class Arbiter(object):
(pid, _) = workers.pop(0)
self.kill_worker(pid, signal.SIGTERM)
self.log.debug("",
self.log.debug("{0} workers".format(len(workers),
extra={ "metric": "gunicorn.workers",
"value": len(workers),
"mtype": "gauge"})