You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This line enforce having the directive "accesslog" configured in my gunicorn configuration and my code is handling logs using standard python logging configuration, getting loggers for gunicorn.access and gunicorn.error
With accesslog configured in my gunicorn config to /tmp/alogfile, my logging configuration intercepts gunicorn.access and all the access logs go to the file referenced by my custom handler, but a empty file /tmp/alogfile gets configured upon every startup.
The text was updated successfully, but these errors were encountered:
Hum, looks like this can be solved just setting accesslog = "-" in the gunicorn config.
I don't know if this issue is still relevant, feel free to resolve it.
Maybe a note in your public documentation would be nice since you state that gunicorn access log should work basically out of the box assuming the log format follows aiohttp standards.
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a [new issue] for related bugs.
If you feel like there's important points made in this discussion, please include those exceprts into that [new issue].
[new issue]: https://github.com/aio-libs/aiohttp/issues/new
aiohttp/aiohttp/worker.py
Line 52 in c5d3999
This line enforce having the directive "accesslog" configured in my gunicorn configuration and my code is handling logs using standard python logging configuration, getting loggers for
gunicorn.access
andgunicorn.error
With
accesslog
configured in my gunicorn config to/tmp/alogfile
, my logging configuration interceptsgunicorn.access
and all the access logs go to the file referenced by my custom handler, but a empty file/tmp/alogfile
gets configured upon every startup.The text was updated successfully, but these errors were encountered: