Skip to content

Commit

Permalink
Always send access log to syslog if syslog is on
Browse files Browse the repository at this point in the history
Close #1157
  • Loading branch information
tilgovi committed Dec 26, 2015
1 parent 0fbb94e commit 36e0884
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gunicorn/glogging.py
Original file line number Diff line number Diff line change
Expand Up @@ -278,7 +278,7 @@ def access(self, resp, req, environ, request_time):
for format details
"""

if not self.cfg.accesslog and not self.cfg.logconfig:
if not (self.cfg.accesslog or self.cfg.logconfig or self.cfg.syslog):
return

# wrap atoms:
Expand Down

2 comments on commit 36e0884

@benoitc
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

works for me :) Let do that for the coming version . Imo this shows how much the configuration became too much complex, we should find a way to make it simpler I guess :)

@berkerpeksag
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Imo this shows how much the configuration became too much complex, we should find a way to make it simpler I guess :)

+1 :)

Please sign in to comment.