Just some extra logging in case a flusher fails.

This commit is contained in:
Jeremy Fincher 2004-03-24 22:53:47 +00:00
parent adc046a6a0
commit 5b03c6d5b7

View File

@ -71,11 +71,11 @@ registryFilename = None
def flush():
"""Flushes all the registered flushers."""
for f in flushers:
for (i, f) in enumerate(flushers):
try:
f()
except Exception, e:
log.exception('Uncaught exception in flusher:')
log.exception('Uncaught exception in flusher #%s (%s):', i, f)
def upkeep(scheduleNext=True):
"""Does upkeep (like flushing, garbage collection, etc.)"""