Fix misleading message about statsd not installed
If the stats object is none we actually didn't configure it. In case statsd is configured but not installed the scheduler will crash earlier with a stack trace. Change-Id: Id9976d78ca41ed4d2ffb164942048273cff7e07f
This commit is contained in:
parent
6abc1fb9d6
commit
8f80298bcb
|
@ -823,8 +823,7 @@ class Scheduler(threading.Thread):
|
|||
if self.statsd:
|
||||
self.log.debug("Statsd enabled")
|
||||
else:
|
||||
self.log.debug("Statsd disabled because python statsd "
|
||||
"package not found")
|
||||
self.log.debug("Statsd not configured")
|
||||
while True:
|
||||
self.log.debug("Run handler sleeping")
|
||||
self.wake_event.wait()
|
||||
|
|
Loading…
Reference in New Issue