Re: logging error with RotatingFileHandler

2006-07-02 Thread Vinay Sajip
flupke wrote: - The rename fails for some reason. I would dig a little deeper to find out what the reason is. After all, on the face of it, there's no obvious reason it should fail. The permission denied indicates perhaps that some other process or thread is keeping that file open? I've

Re: logging error with RotatingFileHandler

2006-06-30 Thread flupke
Vinay Sajip schreef: flupke wrote: If this bug is fixed, where will i find a fixed version and how do i install it? Also, more important to me, what am i doing wrong to get this error message in the first place? You're not doing anything particularly wrong, though it's not exactly good

Re: logging error with RotatingFileHandler

2006-06-30 Thread flupke
flupke schreef: snip Hi Vinay, thanks for the info. I tried to change the handlers.py file. First, i changed some code in doRollover. if os.path.exists(dfn): os.remove(dfn) try: #os.rename(self.baseFilename, dfn) - The rename fails for some reason. I tried with the move

Re: logging error with RotatingFileHandler

2006-06-29 Thread Vinay Sajip
flupke wrote: If this bug is fixed, where will i find a fixed version and how do i install it? Also, more important to me, what am i doing wrong to get this error message in the first place? You're not doing anything particularly wrong, though it's not exactly good practice to call

Re: logging error with RotatingFileHandler

2006-06-27 Thread Vinay Sajip
flupke wrote: File C:\Python24\lib\logging\handlers.py, line 134, in doRollover self.handleError(record) NameError: global name 'record' is not defined There's a bug in doRollover's exception handling, which is masking the true error - which is most probably an exception being thrown in

Re: logging error with RotatingFileHandler

2006-06-27 Thread flupke
Vinay Sajip wrote: flupke wrote: File C:\Python24\lib\logging\handlers.py, line 134, in doRollover self.handleError(record) NameError: global name 'record' is not defined There's a bug in doRollover's exception handling, which is masking the true error - which is most probably an

logging error with RotatingFileHandler

2006-06-25 Thread flupke
Hi, i'm getting errors with the log module concerning RotatingFileHandler. I'm using Python 2.4.3 on Windows XP SP2. This used to work in previous python versions but since i upgraded to 2.4.3 i get these errors: Traceback (most recent call last): File C:\Python24\lib\logging\handlers.py,