[Python-checkins] python/dist/src/Lib/logging handlers.py, 1.14,
1.15
vsajip at users.sourceforge.net
vsajip at users.sourceforge.net
Thu Jul 8 12:24:07 CEST 2004
Update of /cvsroot/python/python/dist/src/Lib/logging
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv19650
Modified Files:
handlers.py
Log Message:
Add exception handling for BaseRotatingFileHandler (SF #979252)
Index: handlers.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/logging/handlers.py,v
retrieving revision 1.14
retrieving revision 1.15
diff -C2 -d -r1.14 -r1.15
*** handlers.py 7 Jul 2004 20:54:48 -0000 1.14
--- handlers.py 8 Jul 2004 10:24:04 -0000 1.15
***************
*** 59,65 ****
in doRollover().
"""
! if self.shouldRollover(record):
! self.doRollover()
! logging.FileHandler.emit(self, record)
class RotatingFileHandler(BaseRotatingHandler):
--- 59,68 ----
in doRollover().
"""
! try:
! if self.shouldRollover(record):
! self.doRollover()
! logging.FileHandler.emit(self, record)
! except:
! self.handleError(record)
class RotatingFileHandler(BaseRotatingHandler):
More information about the Python-checkins
mailing list