-
Notifications
You must be signed in to change notification settings - Fork 95
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Provide a way to reopen logs. #278
Comments
I think this is a good feature if it's not something we already support. In theory we should be able to use the rotating file handler, and possibly do a |
I've investigated a bit further, and I think that Python's I will work on this from that angle and report. |
I am closing this issue as I don't think it is an issue with For updates, see our issue at https://gitlab.com/mailman/mailman/-/issues/931. |
This is related to #239 but is a different issue.
We use
aiosmtpd
in Mailman 3 to implement anLMTP
server. Our issue is we have several persistent processes that process queues and do other tasks. In order to support log rotation, these processes will close and reopen their log files upon receipt of aSIGHUP
. We also arrange for logging tomail.log
to be propagated to oursmtp.log
.The issue is when we
SIGHUP
our processes following log rotation, those that write to oursmtp.log
will close and reopen their logs and begin writing the now currentsmtp.log
, butaiosmtpd
continues to write to its priormail.log
which is an older generation of oursmtp.log
.We would like some way to tell
aiosmtpd
to close and reopen itsmail.log
, or if there is currently a way, what is it?Also see https://gitlab.com/mailman/mailman/-/issues/931 for our issue on this.
The text was updated successfully, but these errors were encountered: