-
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
Access log format not working as documented #1706
Comments
Is that the final logging output or have you "tapped" the logging methods somewhere to inspect their arguments? |
Not sure if I understand the question. That's the output taken directly from the console |
Are you using some JSON log formatter, then? How do you configure it? I ask because you pasted a dictionary and not a single log message in the normal text format. I want to know whether you've configured logging some way you haven't shown, or whether you were printing/debugging local variables rather than the actual log output. |
If that isn't clear, I'll say a little more. You are passing |
This is my logging config
And I start my application with |
Any hints? |
PATH_INFO should be at least. Can you paste the configuration of your web server. Ay way to reproduce it? |
Updating the version of flask and gunicorn fixed the issue. |
Just ran into the same issue, updating flask and gunicorn fixed the issue. |
Ran into similar issue with worker class |
I'd like to output my access log using JSON, but some of the access log fields seem to be not working.
For example, the following configuration in the
gunicorn_config.py
fileI get the following output
Notice how some fields like the method or the protocol are missing from the log line, even though the information seems to be accesible from other places. The method should be POST, not '-'. Same for the URL (should be /format).
Is this a bug?
The text was updated successfully, but these errors were encountered: