From 6c7de0b9bdd0a13e4c88cd3c1078d4bcf6b69277 Mon Sep 17 00:00:00 2001 From: Tony Mack Date: Thu, 7 Jul 2011 12:19:55 -0400 Subject: [PATCH] log exceptions that occur inside of threads --- sfa/util/threadmanager.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/sfa/util/threadmanager.py b/sfa/util/threadmanager.py index 331f847f..4ce578f7 100755 --- a/sfa/util/threadmanager.py +++ b/sfa/util/threadmanager.py @@ -2,6 +2,7 @@ import threading import traceback import time from Queue import Queue +from sfa.util.sfa.logging import logger def ThreadedMethod(callable, results, errors): """ @@ -15,6 +16,7 @@ def ThreadedMethod(callable, results, errors): try: results.put(callable(*args, **kwds)) except Exception, e: + logger.log_exc('ThreadManager: Error in thread: ') errors.put(traceback.format_exc()) thread = ThreadInstance() -- 2.47.0