From 36767858dd79a733e9b325f794041642a5845c3c Mon Sep 17 00:00:00 2001 From: Dave Foster Date: Fri, 21 Dec 2012 11:18:06 -0500 Subject: [PATCH] Fix error when stopping SimpleProcess type, more error reporting --- pyon/container/procs.py | 1 - pyon/ion/process.py | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/pyon/container/procs.py b/pyon/container/procs.py index ba071187..db06ba0b 100644 --- a/pyon/container/procs.py +++ b/pyon/container/procs.py @@ -604,7 +604,6 @@ def _spawn_simple_process(self, process_id, name, module, cls, config): # cleanup method to delete process queue (@TODO: leaks a bit here - should use XOs) def cleanup(*args): - self._cleanup_method(process_instance.id, rsvc) for name in pub_names: p = getattr(process_instance, name) p.close() diff --git a/pyon/ion/process.py b/pyon/ion/process.py index e7cb277f..bc7899f1 100644 --- a/pyon/ion/process.py +++ b/pyon/ion/process.py @@ -412,7 +412,7 @@ def _notify_stop(self): try: self._cleanup_method(self) except Exception as ex: - log.warn("Cleanup method error, attempting to ignore: %s", ex) + log.warn("Cleanup method error, attempting to ignore: %s\nTraceback: %s", ex, traceback.format_exc()) def get_ready_event(self): """