Merge "Improve log message for better understanding"
This commit is contained in:
commit
076f9fce0a
|
@ -139,9 +139,10 @@ class PoolCommands(base.Commands):
|
||||||
try:
|
try:
|
||||||
pool = self.central_api.get_pool(
|
pool = self.central_api.get_pool(
|
||||||
self.context, xpool['id'])
|
self.context, xpool['id'])
|
||||||
except Exception:
|
except Exception as e:
|
||||||
LOG.critical("Bad ID Supplied for pool %s",
|
msg = ("Bad ID Supplied for pool. pool_id: "
|
||||||
xpool['name'])
|
"%(pool)s message: %(res)s")
|
||||||
|
LOG.critical(msg, {'pool': xpool['id'], 'res': e})
|
||||||
continue
|
continue
|
||||||
else:
|
else:
|
||||||
pool = self.central_api.find_pool(
|
pool = self.central_api.find_pool(
|
||||||
|
|
Loading…
Reference in New Issue