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
The persistence of a bug has been identified in Gunicorn version 22.0.0.
Bug Summary:
In the configuration file gunicorn.conf.py, the capture_output variable fails to function properly when the logging system is configured using logconfig_dict rather than errorlog.
Issue Details:
Previously, I configured Gunicorn using the errorlog variable along with capture_output, which worked as expected. However, the log file grew rapidly, prompting a need for file size control. Consequently, I opted to use logconfig_dict with RotatingFileHandler. After this change, the logging system ceased to capture stdout messages.
Upon investigation of the Gunicorn source code, I identified the following segment:
This code snippet reveals that capture_output only takes effect when errorlog is set. However, I did not set errorlog; instead, I configured the logging system using logconfig_dict.
The text was updated successfully, but these errors were encountered:
cdhigh
changed the title
capture_output is not working when config log system using logconfig_dict
"capture_output" fails when using "logconfig_dict" for logging configuration
May 12, 2024
The persistence of a bug has been identified in Gunicorn version 22.0.0.
Bug Summary:
In the configuration file
gunicorn.conf.py
, thecapture_output
variable fails to function properly when the logging system is configured usinglogconfig_dict
rather thanerrorlog
.Issue Details:
Previously, I configured Gunicorn using the
errorlog
variable along withcapture_output
, which worked as expected. However, the log file grew rapidly, prompting a need for file size control. Consequently, I opted to uselogconfig_dict
withRotatingFileHandler
. After this change, the logging system ceased to capture stdout messages.Upon investigation of the Gunicorn source code, I identified the following segment:
gunicorn/gunicorn/glogging.py
Line 202 in 5b68c17
This code snippet reveals that
capture_output
only takes effect whenerrorlog
is set. However, I did not seterrorlog
; instead, I configured the logging system usinglogconfig_dict
.here is the full content of my gunicorn.conf.py
The text was updated successfully, but these errors were encountered: