Handle the context 95/29595/1
authorluxin <luxin7@huawei.com>
Tue, 30 Jan 2018 07:21:01 +0000 (15:21 +0800)
committerluxin <luxin7@huawei.com>
Tue, 30 Jan 2018 07:21:01 +0000 (15:21 +0800)
Change-Id: I0a9b7c3cf4d11151c2184a52704fc8783537b1d5
Issue-ID: VFC-672
Signed-off-by: luxin <luxin7@huawei.com>
ResmanagementService/service/src/main/java/org/onap/vfc/nfvo/resmanagement/service/rest/VnfStatusRoa.java

index 9ecf7a4..77aed64 100644 (file)
@@ -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<String, Object> map = new HashMap<>(10);
         List<VnfStatusEntity> 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<String, Object> map = new HashMap<>(10);
         map.put(ParamConstant.PARAM_ID, id);
         List<VnfStatusEntity> 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);