projects
/
python
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e928977
)
Exceptions raised during renaming in rotating file handlers are now passed to handleE...
author
Vinay Sajip
<vinay_sajip@yahoo.co.uk>
Mon, 16 Jan 2006 09:27:58 +0000
(09:27 +0000)
committer
Vinay Sajip
<vinay_sajip@yahoo.co.uk>
Mon, 16 Jan 2006 09:27:58 +0000
(09:27 +0000)
Lib/logging/handlers.py
patch
|
blob
|
history
diff --git
a/Lib/logging/handlers.py
b/Lib/logging/handlers.py
index 9e1bec1c62b2c06954d7db9848e73faf1816a075..8e569a765d5c0652a056e21cbf7aec22cf604364 100644
(file)
--- a/
Lib/logging/handlers.py
+++ b/
Lib/logging/handlers.py
@@
-131,7
+131,7
@@
class RotatingFileHandler(BaseRotatingHandler):
except (KeyboardInterrupt, SystemExit):
raise
except:
- pass
+ self.handleError(record)
#print "%s -> %s" % (self.baseFilename, dfn)
if self.encoding:
self.stream = codecs.open(self.baseFilename, 'w', self.encoding)
@@
-280,7
+280,7
@@
class TimedRotatingFileHandler(BaseRotatingHandler):
except (KeyboardInterrupt, SystemExit):
raise
except:
- pass
+ self.handleError(record)
if self.backupCount > 0:
# find the oldest log file and delete it
s = glob.glob(self.baseFilename + ".20*")