Code style

This commit is contained in:
Wojciech Malinowski 2019-06-06 15:22:14 +02:00 committed by GitHub
parent 5803f835f6
commit d1f6a7788c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -144,8 +144,10 @@ class Config(object):
# if default logger is in use, and statsd is on, automagically switch
# to the statsd logger
if uri == LoggerClass.default:
statsd_address = 'statsd_socket' in self.settings and self.settings['statsd_socket'].value or \
'statsd_host' in self.settings and self.settings['statsd_host'].value
statsd_address = 'statsd_socket' in self.settings and \
self.settings['statsd_socket'].value or \
'statsd_host' in self.settings and \
self.settings['statsd_host'].value
if statsd_address is not None:
uri = "gunicorn.instrument.statsd.Statsd"