From e2403739d5e866e011ecc45a4d5b20d5e0192997 Mon Sep 17 00:00:00 2001 From: Johannes Erdfelt Date: Mon, 31 Oct 2011 15:11:36 +0000 Subject: Log original dropped exception when a new exception occurs If a exception is caught while processing a previous exception, make sure to log it so it doesn't silently get discarded Change-Id: Ic887db9c2592229970737daf5dd9732b2258877b --- nova/exception.py | 2 ++ 1 file changed, 2 insertions(+) (limited to 'nova/exception.py') diff --git a/nova/exception.py b/nova/exception.py index 998fece1e..872f532f9 100644 --- a/nova/exception.py +++ b/nova/exception.py @@ -107,6 +107,8 @@ def wrap_exception(notifier=None, publisher_id=None, event_type=None, # TODO(sandy): Find a way to import nova.notifier.api so we don't have # to pass it in as a parameter. Otherwise we get a cyclic import of # nova.notifier.api -> nova.utils -> nova.exception :( + # TODO(johannes): Also, it would be nice to use + # utils.save_and_reraise_exception() without an import loop def inner(f): def wrapped(*args, **kw): try: -- cgit