Vinay Sajip <vinay_sa...@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 <rep...@bugs.python.org>
<http://bugs.python.org/issue11270>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to