statsd: tweak logging
This logs only "resource already exist" on debug, so it sounds less warny for operators. Log something when the daemon is started and ready to process. Change-Id: Ia67c7679fa46d8f0c2fb48aed9fd4132a992733a
This commit is contained in:
parent
a59c759a54
commit
1c64f5ef2d
@ -44,7 +44,7 @@ class Stats(object):
|
|||||||
self.conf.statsd.user_id,
|
self.conf.statsd.user_id,
|
||||||
self.conf.statsd.project_id)
|
self.conf.statsd.project_id)
|
||||||
except indexer.ResourceAlreadyExists:
|
except indexer.ResourceAlreadyExists:
|
||||||
LOG.info("Resource %s already exists"
|
LOG.debug("Resource %s already exists"
|
||||||
% self.conf.statsd.resource_id)
|
% self.conf.statsd.resource_id)
|
||||||
else:
|
else:
|
||||||
LOG.info("Created resource %s" % self.conf.statsd.resource_id)
|
LOG.info("Created resource %s" % self.conf.statsd.resource_id)
|
||||||
@ -186,6 +186,9 @@ def start():
|
|||||||
loop.call_later(conf.statsd.flush_delay, _flush)
|
loop.call_later(conf.statsd.flush_delay, _flush)
|
||||||
transport, protocol = loop.run_until_complete(listen)
|
transport, protocol = loop.run_until_complete(listen)
|
||||||
|
|
||||||
|
LOG.info("Started on %s:%d" % (conf.statsd.host, conf.statsd.port))
|
||||||
|
LOG.info("Flush delay: %d seconds" % conf.statsd.flush_delay)
|
||||||
|
|
||||||
try:
|
try:
|
||||||
loop.run_forever()
|
loop.run_forever()
|
||||||
except KeyboardInterrupt:
|
except KeyboardInterrupt:
|
||||||
|
Loading…
Reference in New Issue
Block a user