##// END OF EJS Templates
feat(statsd): added extra logging into statsd initalization
super-admin -
r5320:2dcf7cd2 default
parent child Browse files
Show More
@@ -26,9 +26,10 b' def client_from_config(configuration, pr'
26 from pyramid.settings import asbool
26 from pyramid.settings import asbool
27
27
28 _config = statsd_config(configuration, prefix)
28 _config = statsd_config(configuration, prefix)
29 statsd_flag = _config.get('enabled')
29 statsd_enabled = asbool(_config.pop('enabled', False))
30 statsd_enabled = asbool(_config.pop('enabled', False))
30 if not statsd_enabled:
31 if not statsd_enabled:
31 log.debug('statsd client not enabled by statsd.enabled = flag, skipping...')
32 log.debug('statsd client not enabled by statsd.enabled = %s flag, skipping...', statsd_flag)
32 return
33 return
33
34
34 host = _config.pop('statsd_host', HOST)
35 host = _config.pop('statsd_host', HOST)
General Comments 0
You need to be logged in to leave comments. Login now