diff options
author | Yun Huang <yun.huang@windriver.com> | 2018-04-25 10:13:39 +0800 |
---|---|---|
committer | Yun Huang <yun.huang@windriver.com> | 2018-04-25 10:13:39 +0800 |
commit | 53466a21fc2441c0dee5aab835f704c4cc0d684a (patch) | |
tree | 5ca84652e03e42ed6a87538c3aff0d72282ef6c2 /share/newton_base/openoapi/hosts.py | |
parent | f7c6546100bea244dfa0f59d5a79a34a473223ca (diff) |
Logging enhancement for openo image API
Change-Id: Iad3b7f0eb3f3c75b5881b476073abed38e309a89
Issue-ID: MULTICLOUD-178
Signed-off-by: Yun Huang <yun.huang@windriver.com>
Diffstat (limited to 'share/newton_base/openoapi/hosts.py')
-rw-r--r-- | share/newton_base/openoapi/hosts.py | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/share/newton_base/openoapi/hosts.py b/share/newton_base/openoapi/hosts.py index ddcbe4f0..2d50886f 100644 --- a/share/newton_base/openoapi/hosts.py +++ b/share/newton_base/openoapi/hosts.py @@ -50,7 +50,14 @@ class Hosts(APIView): vim = VimDriverUtils.get_vim_info(vimid) sess = VimDriverUtils.get_session(vim, tenantid) + + logger.info("making request with URI:%s" % req_resouce) resp = sess.get(req_resouce, endpoint_filter=self.service) + logger.info("request returns with status %s" % resp.status_code) + if resp.status_code == status.HTTP_200_OK: + logger.debug("with content:%s" % resp.json()) + pass + content = resp.json() vim_dict = { "vimName": vim["name"], |