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

Andreas Sauer report at bugs.python.org
Mon Feb 21 14:20:18 CET 2011


New submission from Andreas Sauer <sauerandreas at gmx.de>:

Module: logging
OS: Windows XP

When using the RotatingFileHandler, the logging cras when i open the Logfile in an Texteditor.

I think there is a Problem in renaming the Files, while it's open in the Texteditor.

Traceback (most recent call last):
  File "C:\Programme\Python26\lib\logging\handlers.py", line 76, in emit
    if self.shouldRollover(record):
  File "C:\Programme\Python26\lib\logging\handlers.py", line 150, in shouldRollo
ver
    self.stream.seek(0, 2)  #due to non-posix-compliant Windows feature
ValueError: I/O operation on closed file

----------
components: Extension Modules
messages: 128960
nosy: RockstarVC
priority: normal
severity: normal
status: open
title: logging: RotatingFileHandler crash when opening the Logfile in an Texteditor
type: crash
versions: Python 2.6, Python 2.7

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


More information about the Python-bugs-list mailing list