Fix AttributeError when --log-syslog is passed (#1773)

Config option `disable_access_log_redirection` does not exist.
This was introduced in 7dc9003dff149e29c0af4d409060d34f9a7775fa.

Fixes #1768
This commit is contained in:
Rudolph Froger 2018-05-06 17:04:40 +02:00 committed by Berker Peksag
parent e73ca252f7
commit d48b600239

View File

@ -340,7 +340,7 @@ class Logger(object):
if not (self.cfg.accesslog or self.cfg.logconfig or
self.cfg.logconfig_dict or
(self.cfg.syslog and not self.cfg.disable_access_log_redirection)):
(self.cfg.syslog and not self.cfg.disable_redirect_access_to_syslog)):
return
# wrap atoms: