mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-12-24 19:52:54 +01:00
Just some extra logging in case a flusher fails.
This commit is contained in:
parent
adc046a6a0
commit
5b03c6d5b7
@ -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.)"""
|
||||
|
Loading…
Reference in New Issue
Block a user