This issue tracker has been migrated to GitHub ,
and is currently read-only.
For more information,
see the GitHub FAQs in the Python's Developer Guide.
| Author | blocki |
|---|---|
| Recipients | blocki |
| Date | 2008年05月20日.12:34:06 |
| SpamBayes Score | 0.00534332 |
| Marked as misclassified | No |
| Message-id | <1211286852.1.0.356571953075.issue2929@psf.upfronthosting.co.za> |
| In-reply-to |
| Content | |
|---|---|
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 |
|
| History | |||
|---|---|---|---|
| Date | User | Action | Args |
| 2008年05月20日 12:34:13 | blocki | set | spambayes_score: 0.00534332 -> 0.00534332 recipients: + blocki |
| 2008年05月20日 12:34:12 | blocki | set | spambayes_score: 0.00534332 -> 0.00534332 messageid: <1211286852.1.0.356571953075.issue2929@psf.upfronthosting.co.za> |
| 2008年05月20日 12:34:09 | blocki | link | issue2929 messages |
| 2008年05月20日 12:34:07 | blocki | create | |