From 61a859f567dde02591bd999ea3b77fa1356d0b9b Mon Sep 17 00:00:00 2001 From: luxin Date: Tue, 30 Jan 2018 15:21:01 +0800 Subject: Handle the context Change-Id: I0a9b7c3cf4d11151c2184a52704fc8783537b1d5 Issue-ID: VFC-672 Signed-off-by: luxin --- .../onap/vfc/nfvo/resmanagement/service/rest/VnfStatusRoa.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'ResmanagementService/service/src') diff --git a/ResmanagementService/service/src/main/java/org/onap/vfc/nfvo/resmanagement/service/rest/VnfStatusRoa.java b/ResmanagementService/service/src/main/java/org/onap/vfc/nfvo/resmanagement/service/rest/VnfStatusRoa.java index 9ecf7a4..77aed64 100644 --- a/ResmanagementService/service/src/main/java/org/onap/vfc/nfvo/resmanagement/service/rest/VnfStatusRoa.java +++ b/ResmanagementService/service/src/main/java/org/onap/vfc/nfvo/resmanagement/service/rest/VnfStatusRoa.java @@ -38,9 +38,9 @@ import org.onap.vfc.nfvo.resmanagement.common.constant.UrlConstant; import org.onap.vfc.nfvo.resmanagement.common.util.request.RequestUtil; import org.onap.vfc.nfvo.resmanagement.common.util.response.ResponseUtil; import org.onap.vfc.nfvo.resmanagement.common.util.response.RoaResponseUtil; +import org.onap.vfc.nfvo.resmanagement.common.util.restclient.ServiceException; import org.onap.vfc.nfvo.resmanagement.service.entity.VnfStatusEntity; import org.onap.vfc.nfvo.resmanagement.service.group.inf.VnfStatusService; -import org.onap.vfc.nfvo.resmanagement.common.util.restclient.ServiceException; import org.slf4j.Logger; import org.slf4j.LoggerFactory; @@ -67,7 +67,7 @@ public class VnfStatusRoa { public JSONObject getVnfStatuss(@Context HttpServletRequest context) throws ServiceException { Map map = new HashMap<>(10); List vnfStatus = vnfStatusService.getList(map); - LOGGER.info("VnfStatusRoa::getVnfStatuss:{}", vnfStatus.toString()); + LOGGER.info("VnfStatusRoa::getVnfStatuss:{}", vnfStatus.toString(), context); JSONObject result = new JSONObject(); result.put("vnfStatus", vnfStatus); return result; @@ -77,7 +77,7 @@ public class VnfStatusRoa { @Path("/{id}") public JSONObject getVnfStatus(@Context HttpServletRequest context, @PathParam("id") String id) throws ServiceException { - LOGGER.info("VnfStatusRoa::getVnfStatus id:{}", id); + LOGGER.info("VnfStatusRoa::getVnfStatus id:{}", id, context); Map map = new HashMap<>(10); map.put(ParamConstant.PARAM_ID, id); List vnfStatus = vnfStatusService.getList(map); @@ -113,7 +113,7 @@ public class VnfStatusRoa { throw new ServiceException( ResourceUtil.getMessage("org.openo.nfvo.resmanage.service.vnfStatus.delete.id.null")); } - LOGGER.info("VnfStatusRoa::deleteVnfStatus id:{}", id); + LOGGER.info("VnfStatusRoa::deleteVnfStatus id:{}", id, context); try { int result = vnfStatusService.delete(id); return RoaResponseUtil.delete(result); -- cgit 1.2.3-korg