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
I am using the logconfig_dict configuration key to log to a file vialogging.FileHandler. Then I'm using logrotate to rotate the log files daily, something similar to:
Coming from a Flask+Gunicorn setup, I am using kill -USR1 $(cat /path-to/my-app.pid) to signal that the log files have changed and need to be reopened. The /path-to/my-app.pid is configured via pid_path.
Hypercorn isn't handling the signal the way Gunicorn does (or not at all) and the server is simply shut down. How should I go about implementing a similar logic in Hypercorn?
The text was updated successfully, but these errors were encountered:
I am using the
logconfig_dict
configuration key to log to a file vialogging.FileHandler
. Then I'm usinglogrotate
to rotate the log files daily, something similar to:Coming from a Flask+Gunicorn setup, I am using
kill -USR1 $(cat /path-to/my-app.pid)
to signal that the log files have changed and need to be reopened. The/path-to/my-app.pid
is configured viapid_path
.Hypercorn isn't handling the signal the way Gunicorn does (or not at all) and the server is simply shut down. How should I go about implementing a similar logic in Hypercorn?
The text was updated successfully, but these errors were encountered: