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.
Created on 2008年05月20日 12:34 by blocki, last changed 2022年04月11日 14:56 by admin. This issue is now closed.
| Messages (2) | |||
|---|---|---|---|
| msg67125 - (view) | Author: Stephan Blietz (blocki) | Date: 2008年05月20日 12:34 | |
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 |
|||
| msg67131 - (view) | Author: Vinay Sajip (vinay.sajip) * (Python committer) | Date: 2008年05月20日 15:43 | |
Fix checked into trunk (r63507). Thanks for the report! |
|||
| History | |||
|---|---|---|---|
| Date | User | Action | Args |
| 2022年04月11日 14:56:34 | admin | set | github: 47178 |
| 2008年05月20日 15:43:08 | vinay.sajip | set | status: open -> closed resolution: fixed messages: + msg67131 |
| 2008年05月20日 14:42:57 | georg.brandl | set | assignee: vinay.sajip nosy: + vinay.sajip |
| 2008年05月20日 12:34:09 | blocki | create | |