Commit 3970c111 authored by Vinay Sajip's avatar Vinay Sajip

Add exception handling for BaseRotatingFileHandler (SF #979252)

parent 4bbab2bd
......@@ -58,9 +58,12 @@ class BaseRotatingHandler(logging.FileHandler):
Output the record to the file, catering for rollover as described
in doRollover().
"""
if self.shouldRollover(record):
self.doRollover()
logging.FileHandler.emit(self, record)
try:
if self.shouldRollover(record):
self.doRollover()
logging.FileHandler.emit(self, record)
except:
self.handleError(record)
class RotatingFileHandler(BaseRotatingHandler):
"""
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment