mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-11-07 19:49:23 +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():
|
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.)"""
|
||||||
|
Loading…
Reference in New Issue
Block a user