logging error with RotatingFileHandler
Vinay Sajip
vinay_sajip at yahoo.co.uk
Tue Jun 27 02:59:22 EDT 2006
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
os.rename.
I'll look at fixing this bug asap. Most likely, it'll be done by let
the exception propagate up from doRollover to its caller.
Regards,
Vinay Sajip
More information about the Python-list
mailing list