[issue18941] RotatingFileHandler and TimedRotatingFileHandler do not respect delay on rollover

Joshua Olson report at bugs.python.org
Fri Sep 6 01:56:09 CEST 2013


New submission from Joshua Olson:

For low volume loggers RotatingFileHandler and TimedRotatingFileHandler will create possibly unnecessary files on doRollover, since they don't check the value of delay when opening the new self.stream.

self.stream = self._open()

should be something like

if not self.delay:
    self.stream = self._open()

----------
messages: 197036
nosy: solarmist
priority: normal
severity: normal
status: open
title: RotatingFileHandler and TimedRotatingFileHandler do not respect delay on rollover

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue18941>
_______________________________________


More information about the Python-bugs-list mailing list