NSX|V: LOG.exception only when there is an exception
Change-Id: Ic2e926f622288f5ae1c213142f0191a419ea427d
This commit is contained in:
parent
dc1e6b1576
commit
63dfc1dc61
|
@ -226,10 +226,10 @@ def allocate_edge_vnic(session, edge_id, network_id):
|
|||
binding['network_id'] = network_id
|
||||
session.add(binding)
|
||||
return binding
|
||||
msg = (_("Failed to allocate one available vnic on edge_id: "
|
||||
msg = (_("Edge VNIC: Failed to allocate one available vnic on edge_id: "
|
||||
":%(edge_id)s to network_id: %(network_id)s") %
|
||||
{'edge_id': edge_id, 'network_id': network_id})
|
||||
LOG.exception(msg)
|
||||
LOG.error(msg)
|
||||
raise nsx_exc.NsxPluginException(err_msg=msg)
|
||||
|
||||
|
||||
|
@ -260,7 +260,7 @@ def allocate_edge_vnic_with_tunnel_index(session, edge_id, network_id):
|
|||
msg = (_("Failed to allocate one available vnic on edge_id: "
|
||||
":%(edge_id)s to network_id: %(network_id)s") %
|
||||
{'edge_id': edge_id, 'network_id': network_id})
|
||||
LOG.exception(msg)
|
||||
LOG.error(msg)
|
||||
raise nsx_exc.NsxPluginException(err_msg=msg)
|
||||
binding['network_id'] = network_id
|
||||
session.add(binding)
|
||||
|
|
Loading…
Reference in New Issue