[New-bugs-announce] [issue2929] TimedRotatingFileHandler crashes on backup file deletion attempt

Stephan Blietz report at bugs.python.org
Tue May 20 14:34:12 CEST 2008

New submission from Stephan Blietz <sblietz at gmx.de>:

when the maximum number of backup files is reached
TimedRotatingFileHandler can't delete the oldest existing file. I got
the following error message:

Traceback (most recent call last):
  File "D:\Python25\lib\logging\handlers.py", line 75, in emit
  File "D:\Python25\lib\logging\handlers.py", line 319, in doRollover
WindowsError: [Error 2] The system cannot find the file specified:

The reason for this error is located in the getFilesToDelete method of
the TimedRotatingFileHandler class. The result sequence of this method
contains filenames but a complete filepath is needed.

After replacing 
    result.append(os.path.join(dirName, fileName))
the problem seems to be solved


components: Library (Lib)
messages: 67125
nosy: blocki
severity: normal
status: open
title: TimedRotatingFileHandler crashes on backup file deletion attempt
type: crash
versions: Python 2.5

Tracker <report at bugs.python.org>

More information about the New-bugs-announce mailing list