From d1f6a7788c8416533d448cfe490957efabdb13a0 Mon Sep 17 00:00:00 2001 From: Wojciech Malinowski Date: Thu, 6 Jun 2019 15:22:14 +0200 Subject: [PATCH] Code style --- gunicorn/config.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/gunicorn/config.py b/gunicorn/config.py index 3f48b6dd..95b615d4 100644 --- a/gunicorn/config.py +++ b/gunicorn/config.py @@ -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"