From f7c6546100bea244dfa0f59d5a79a34a473223ca Mon Sep 17 00:00:00 2001 From: Yun Huang Date: Tue, 24 Apr 2018 11:09:41 +0800 Subject: Logging enhancement for openo hypervisor API Change-Id: I567557ee4c70083d366c1c614dae2b953d2a18d7 Issue-ID: MULTICLOUD-178 Signed-off-by: Yun Huang --- share/newton_base/openoapi/flavor.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'share/newton_base/openoapi/flavor.py') diff --git a/share/newton_base/openoapi/flavor.py b/share/newton_base/openoapi/flavor.py index d922be8a..1124aec4 100644 --- a/share/newton_base/openoapi/flavor.py +++ b/share/newton_base/openoapi/flavor.py @@ -138,7 +138,7 @@ class Flavors(APIView): logger.info("request returns with status %s" % resp.status_code) if resp.status_code == status.HTTP_200_OK: - logger.debug("with content:%s" % req_resouce) + logger.debug("with content:%s" % resp.json()) pass return resp @@ -163,7 +163,7 @@ class Flavors(APIView): logger.info("request returns with status %s" % resp.status_code) if resp.status_code == status.HTTP_200_OK: - logger.debug("with content:%s" % req_resouce) + logger.debug("with content:%s" % resp.json()) pass return resp -- cgit 1.2.3-korg