mirror of
https://github.com/frappe/gunicorn.git
synced 2026-01-14 11:09:11 +08:00
Code style
This commit is contained in:
parent
5803f835f6
commit
d1f6a7788c
@ -144,8 +144,10 @@ class Config(object):
|
|||||||
# if default logger is in use, and statsd is on, automagically switch
|
# if default logger is in use, and statsd is on, automagically switch
|
||||||
# to the statsd logger
|
# to the statsd logger
|
||||||
if uri == LoggerClass.default:
|
if uri == LoggerClass.default:
|
||||||
statsd_address = 'statsd_socket' in self.settings and self.settings['statsd_socket'].value or \
|
statsd_address = 'statsd_socket' in self.settings and \
|
||||||
'statsd_host' in self.settings and self.settings['statsd_host'].value
|
self.settings['statsd_socket'].value or \
|
||||||
|
'statsd_host' in self.settings and \
|
||||||
|
self.settings['statsd_host'].value
|
||||||
if statsd_address is not None:
|
if statsd_address is not None:
|
||||||
uri = "gunicorn.instrument.statsd.Statsd"
|
uri = "gunicorn.instrument.statsd.Statsd"
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user