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:
Tobias Henkel 2017-12-18 19:32:39 +01:00
parent 6abc1fb9d6
commit 8f80298bcb
1 changed files with 1 additions and 2 deletions

View File

@ -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()