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
TimedRotatingFileHandler and RotatingFileHandler's perform_rollover methods open the new stream in w mode, nota mode. The result is that if multiple processes are writing to logs, then they start competing with each other. Here's some test code that demonstrates:
TimedRotatingFileHandler and RotatingFileHandler's
perform_rollover
methods open the new stream inw
mode, nota
mode. The result is that if multiple processes are writing to logs, then they start competing with each other. Here's some test code that demonstrates:With the output showing that the mode has changed:
Is there a reason that both of these methods not do
self._open(self._mode)
instead?The text was updated successfully, but these errors were encountered: