Logging with Gunicorn and use_queues
See original GitHub issueNot sure if this is a bug in a package. I’m just writing this to help the next poor soul who comes along and tries to get this to work.
Maybe it’s obvious to others, use_queues has to spawn a thread to manage a queue. Gunicorn spawns threads to handle api requests. The use_queues thread is unable to listen to the Gunicorn threads… I think…
Therefore use_queues
must be disabled in order to get access logs from gunicorn.
Issue Analytics
- State:
- Created 4 years ago
- Comments:6 (1 by maintainers)
Top Results From Across the Web
Logging, Flask, and Gunicorn... the Manageable Way
The solution is simple but effective: Check to see if our Flask application is being run directly or through Gunicorn, and then set...
Read more >How to manage logs with Django, Gunicorn and NGINX
Set up Django to log everything to stdout/stderr using the StreamHandler and capture the output using Gunicorn via the capture_output option, ...
Read more >Settings — Gunicorn 20.1.0 documentation
You can provide your own logger by giving Gunicorn a Python path to a class that quacks like gunicorn.glogging.Logger . logconfig ¶. Command...
Read more >Logs with Flask and Gunicorn - LinkedIn
We need to make sure logs coming from Flask and Gunicorn are wired together in order for us to have a nice logging...
Read more >Logging in flask with gunicorn - Stack Overflow
Could someone help me if this the right way to log application logs. logging · flask · gunicorn · Share.
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
I am the “next poor soul”. Thank you for noting this.
Got the same issue, any solutions for this?