[issue11270] logging: RotatingFileHandler crash when opening the Logfile in an Texteditor

Vinay Sajip report at bugs.python.org
Mon Feb 21 23:42:06 CET 2011


Vinay Sajip <vinay_sajip at yahoo.co.uk> added the comment:

I don't think this error can be avoided, though if you set logging.raiseExceptions to False then the exception won't be raised, though the handler won't produce any more output, either.

I don't believe this is a logging bug - you're not supposed to keep files open in the editor while you're still rotating, as the library assumes that all rotated files are under its control for deleting and renaming.

If you need different functionality, subclass the handler and implement your own handling logic to deal with open files; it's not appropriate to do this in the standard library as there's no "obvious" way to handle locking of files which are supposed to be under the library's control.

Based on the above reasoning, I'm marking this as "invalid" and "pending" to see what your response to my comment is. If I don't hear any more about this for a week or so, I'll mark this issue as closed.

----------
assignee:  -> vinay.sajip
resolution:  -> invalid
status: open -> pending

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


More information about the Python-bugs-list mailing list