This message is mostly for Mike.

I've taken a look at the patch provided via
https://github.com/Supervisor/supervisor/pull/10 .  It ensures that, for
rotated file logs at least, that if two processes log to the same
filename, that the same stream is used for both processes.

The issue that has been coming up when Whit sees file logs rotate (when
a file size is rolled over, the handler for process A does rotation, but
then process B's handler also does it too, which leads to weirdness).

My question is:  do we want to advertise support for two separate
processes logging to the same file name in this way?

If not, I should probably work up a patch that logs a warning when the
system detects that it's logging two process' files to the same filename
and provide an alternate mechanism for doing the same thing (like
syslog, or something else).

If so, the patch looks reasonable, but maybe a bit purpose-focused.
I suspect we should instead apply it to the lower level FileHandler
instead of to RotatingFileHandler.

- C


_______________________________________________
Supervisor-users mailing list
[email protected]
http://lists.supervisord.org/mailman/listinfo/supervisor-users

Reply via email to