Merge "Log original dropped exception when a new exception occurs"

This commit is contained in:
Jenkins
2011-11-03 17:28:43 +00:00
committed by Gerrit Code Review
2 changed files with 16 additions and 8 deletions

View File

@@ -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: