gunicorn icon indicating copy to clipboard operation
gunicorn copied to clipboard

Update arbiter.py - log SIGTERM as info level message

Open slimadvies opened this issue 2 years ago • 3 comments

I recently started to record gunicorn error messages and everytime I reloaded gunicorn, I received error log messages from every worker. SIGTERM should not generate an error log message. Info level is more appropriate since it is a graceful exit.

slimadvies avatar Nov 14 '23 08:11 slimadvies

please don't break behavior that exist since years. We bneed to check if first the behavior changed here and also how errors are configured at user level. We sometimes uses stderr to not go through the stdout which would be the case with info level.

benoitc avatar Jan 02 '24 08:01 benoitc

How about ignoring the SIGTERM signal then? Because this signal is thrown internally to gracefully shutdown workers. This should NOT generate a error message (introduced by PR #2419)

slimadvies avatar Jan 03 '24 11:01 slimadvies

+1

We recently upgraded gunicorn to the latest version, and this has been a pain point for us. Whenever our containers are taken down for deployment, it emits this error log line even though we exit gracefully. Graceful shutdowns should never result in an error log. This issue is polluting our alarming.

Parthib avatar Jul 09 '24 21:07 Parthib