This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author vinay.sajip
Recipients vinay.sajip, vstinner
Date 2021-10-07.19:08:47
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1633633727.36.0.757161504356.issue45401@roundup.psfhosted.org>
In-reply-to
Content
RotatingFileHandler is also affected by the same issue.

Both RotatingFileHandler and TimedRotatingFileHandler have a shouldRollover method which, if it returns False, should prevent rollover.

I would think that putting something like

    if not os.path.isfile(self.baseFilename):
        return False

at the top of each of these methods should avoid rolling over any thing that isn't a regular file - devices, pipes etc. Would you agree? Can you see any drawbacks?

I'm not sure this would cover sockets, but there are separate handlers for using sockets so there would be no reason for people to use sockets with file handlers. And of course sockets are a completely different sort of beast on Windows.
History
Date User Action Args
2021-10-07 19:08:47vinay.sajipsetrecipients: + vinay.sajip, vstinner
2021-10-07 19:08:47vinay.sajipsetmessageid: <1633633727.36.0.757161504356.issue45401@roundup.psfhosted.org>
2021-10-07 19:08:47vinay.sajiplinkissue45401 messages
2021-10-07 19:08:47vinay.sajipcreate