Merge "DB: logging exceptions should use save_and_reraise"

This commit is contained in:
Jenkins 2014-02-26 13:00:53 +00:00 committed by Gerrit Code Review
commit b40f2d79aa

View File

@ -804,9 +804,9 @@ def floating_ip_bulk_destroy(context, ips):
reservations,
project_id=project_id)
except Exception:
LOG.exception(_("Failed to update usages bulk "
"deallocating floating IP"))
raise
with excutils.save_and_reraise_exception():
LOG.exception(_("Failed to update usages bulk "
"deallocating floating IP"))
@require_context