Made sure the failure of one flusher doesn't affect them all.

This commit is contained in:
Jeremy Fincher 2004-02-12 06:48:22 +00:00
parent 31bb1abc7d
commit c65dfd718e

View File

@ -72,7 +72,10 @@ registryFilename = None
def flush(): def flush():
"""Flushes all the registered flushers.""" """Flushes all the registered flushers."""
for f in flushers: for f in flushers:
try:
f() f()
except Exception, e:
log.exception('Uncaught exception in flusher:')
def upkeep(): def upkeep():
"""Does upkeep (like flushing, garbage collection, etc.)""" """Does upkeep (like flushing, garbage collection, etc.)"""