Improve log message for better understanding
Sometimes designate central could not update the Pool configuration. Very limited information is logged into the designate central logs through which we can not find the root cause of failure. This patch adds some more information into the log for better understanding. Change-Id: I26d36c15406436bb3b733d44c490a14e5ece39a6 Closes-Bug: 1835407
This commit is contained in:
parent
d491cd78ff
commit
e70af61dac
|
@ -139,9 +139,10 @@ class PoolCommands(base.Commands):
|
|||
try:
|
||||
pool = self.central_api.get_pool(
|
||||
self.context, xpool['id'])
|
||||
except Exception:
|
||||
LOG.critical("Bad ID Supplied for pool %s",
|
||||
xpool['name'])
|
||||
except Exception as e:
|
||||
msg = ("Bad ID Supplied for pool. pool_id: "
|
||||
"%(pool)s message: %(res)s")
|
||||
LOG.critical(msg, {'pool': xpool['id'], 'res': e})
|
||||
continue
|
||||
else:
|
||||
pool = self.central_api.find_pool(
|
||||
|
|
Loading…
Reference in New Issue