-
Notifications
You must be signed in to change notification settings - Fork 1.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Redirect accesslog issue 1403 #1528
Redirect accesslog issue 1403 #1528
Conversation
62f09cd
to
d31b8ac
Compare
If we do this we should probably have the default to be |
Also, I think it would be preferable if the option made it clear from its name that it's redirecting to syslog. |
Oh, I see now that the issue that motivated this. Maybe we should change the default. We could do that for R20. What do you think, @benoitc? |
I agree that we should keep the default behavior in 19.x. I agree with @tilgovi's plan: In 19.x:
In 20.0:
|
d31b8ac
to
450f702
Compare
@berkerpeksag thanks, please check my changes |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
docs/source/settings.rst
Outdated
* ``False`` | ||
|
||
Disable redirect access logs to syslog. | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Needs
.. versionadded:: 19.8
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Also, it would be nice to add a note to syslog
documentation at http://docs.gunicorn.org/en/stable/settings.html#syslog
.. versionchanged:: 19.8
You can now disable sending access logs by using the
:ref:`disable-access-log-redirection` setting.
gunicorn/glogging.py
Outdated
@@ -314,7 +315,8 @@ def access(self, resp, req, environ, request_time): | |||
for format details | |||
""" | |||
|
|||
if not (self.cfg.accesslog or self.cfg.logconfig or self.cfg.syslog): | |||
if not (self.cfg.accesslog or self.cfg.logconfig or \ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
\
is not needed here since we are already in if not (...)
.
78dcce7
to
5d72ad8
Compare
@berkerpeksag thanks, requested changes are ready |
hrm the option name is misleading somehow (too much generic). maybe |
5d72ad8
to
919871d
Compare
@benoitc, thanks, I rename the config with the first one |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
@hramezani thanks! |
…ue_1403 Redirect accesslog issue 1403
No description provided.