Merge "DB: logging exceptions should use save_and_reraise"
This commit is contained in:
commit
b40f2d79aa
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user