New submission from Vishvananda Ishaya:
If there is a failure during the re-opening of the file WatchedFileHandler can
lose the ability to log and starts throwing IOErrors.
--
messages: 220403
nosy: vishvananda
priority: normal
severity: normal
status: open
title: WatchedFileHandler
Vishvananda Ishaya added the comment:
The attached file illustrates the error when attempting to call handler.emit()
from multiple threads at the same time.
--
Added file: http://bugs.python.org/file35604/log.py
___
Python tracker
<h
Vishvananda Ishaya added the comment:
The attached file illustrates the error when attempting to call handler.emit()
when the file cannot be opened. Even if this situation is later remedied all
future emit() calls will fail since stream.flush() is called on a fd that has
already been closed
Vishvananda Ishaya added the comment:
Example diff against python 2.7.6 that fixes the issues
--
keywords: +patch
Added file: http://bugs.python.org/file35606/log.diff
___
Python tracker
<http://bugs.python.org/issue21