From 8f80298bcba32dd0252466385e1c252addafcb1e Mon Sep 17 00:00:00 2001 From: Tobias Henkel Date: Mon, 18 Dec 2017 19:32:39 +0100 Subject: [PATCH] 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 --- zuul/scheduler.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/zuul/scheduler.py b/zuul/scheduler.py index b978979d32..c3f2f234d8 100644 --- a/zuul/scheduler.py +++ b/zuul/scheduler.py @@ -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()