Merge "embrane: Use lazy logging interpolation"
This commit is contained in:
commit
6d55efd936
@ -108,10 +108,10 @@ class Dispatcher(object):
|
|||||||
h_exc.BrokenInterface, h_exc.DvaCreationFailed,
|
h_exc.BrokenInterface, h_exc.DvaCreationFailed,
|
||||||
h_exc.DvaCreationPending, h_exc.BrokenDva,
|
h_exc.DvaCreationPending, h_exc.BrokenDva,
|
||||||
h_exc.ConfigurationFailed) as ex:
|
h_exc.ConfigurationFailed) as ex:
|
||||||
LOG.warning(p_con.error_map[type(ex)] % ex.message)
|
LOG.warning(p_con.error_map[type(ex)], ex.message)
|
||||||
transient_state = p_con.Status.ERROR
|
transient_state = p_con.Status.ERROR
|
||||||
except h_exc.DvaDeleteFailed as ex:
|
except h_exc.DvaDeleteFailed as ex:
|
||||||
LOG.warning(p_con.error_map[type(ex)] % ex.message)
|
LOG.warning(p_con.error_map[type(ex)], ex.message)
|
||||||
transient_state = p_con.Status.DELETED
|
transient_state = p_con.Status.DELETED
|
||||||
finally:
|
finally:
|
||||||
# if the returned transient state is None, no operations
|
# if the returned transient state is None, no operations
|
||||||
|
Loading…
Reference in New Issue
Block a user