Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Python: Bugs

[issue2929] TimedRotatingFileHandler crashes on backup file deletion attempt

 

 

Python bugs RSS feed   Index | Next | Previous | View Threaded


report at bugs

May 20, 2008, 5:34 AM

Post #1 of 3 (96 views)
Permalink
[issue2929] TimedRotatingFileHandler crashes on backup file deletion attempt

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

Hello,
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
self.doRollover()
File "D:\Python25\lib\logging\handlers.py", line 319, in doRollover
os.remove(s)
WindowsError: [Error 2] The system cannot find the file specified:
'assyst.log.2008-05-20_12-49'

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(fileName)
with
result.append(os.path.join(dirName, fileName))
the problem seems to be solved

Regards
Stephan

----------
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>
<http://bugs.python.org/issue2929>
__________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/list-python-bugs%40lists.gossamer-threads.com


report at bugs

May 20, 2008, 7:42 AM

Post #2 of 3 (95 views)
Permalink
[issue2929] TimedRotatingFileHandler crashes on backup file deletion attempt [In reply to]

Changes by Georg Brandl <georg[at]python.org>:


----------
assignee: -> vsajip
nosy: +vsajip

__________________________________
Tracker <report[at]bugs.python.org>
<http://bugs.python.org/issue2929>
__________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/list-python-bugs%40lists.gossamer-threads.com


report at bugs

May 20, 2008, 8:43 AM

Post #3 of 3 (94 views)
Permalink
[issue2929] TimedRotatingFileHandler crashes on backup file deletion attempt [In reply to]

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

Fix checked into trunk (r63507). Thanks for the report!

----------
resolution: -> fixed
status: open -> closed

__________________________________
Tracker <report[at]bugs.python.org>
<http://bugs.python.org/issue2929>
__________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/list-python-bugs%40lists.gossamer-threads.com

Python bugs RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact lists@gossamer-threads.com
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.