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(): def flush():
"""Flushes all the registered flushers.""" """Flushes all the registered flushers."""
for f in flushers: for (i, f) in enumerate(flushers):
try: try:
f() f()
except Exception, e: except Exception, e:
log.exception('Uncaught exception in flusher:') log.exception('Uncaught exception in flusher #%s (%s):', i, f)
def upkeep(scheduleNext=True): def upkeep(scheduleNext=True):
"""Does upkeep (like flushing, garbage collection, etc.)""" """Does upkeep (like flushing, garbage collection, etc.)"""