summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTakahito Hirose <takahito.hirose0518@gmail.com>2019-07-04 20:45:18 +0900
committerTakahito Hirose <takahito.hirose0518@gmail.com>2019-07-30 03:19:10 +0000
commiteb6abf7dbd077fa539fab1de6c8532f1729dc725 (patch)
treee8b68659f71a7e16db6edd36a2cccfb4692488a9
parentc95dbaa9aff91988e3361fa7bd95fa3a1474121b (diff)
downloaddesignate-eb6abf7dbd077fa539fab1de6c8532f1729dc725.tar.gz
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 (cherry picked from commit e70af61dac1794ecd858c875c44d6b2ab0d59206)
-rw-r--r--designate/manage/pool.py7
1 files changed, 4 insertions, 3 deletions
diff --git a/designate/manage/pool.py b/designate/manage/pool.py
index 7311c0d0..f5dd5ef7 100644
--- a/designate/manage/pool.py
+++ b/designate/manage/pool.py
@@ -134,9 +134,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(