From 5b03c6d5b7c3abb571a248bafb135e99dfeaa1d0 Mon Sep 17 00:00:00 2001 From: Jeremy Fincher Date: Wed, 24 Mar 2004 22:53:47 +0000 Subject: [PATCH] Just some extra logging in case a flusher fails. --- src/world.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/world.py b/src/world.py index 3dfb7b3b3..6b7033743 100644 --- a/src/world.py +++ b/src/world.py @@ -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.)"""