summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorluxin <luxin7@huawei.com>2018-01-30 15:21:01 +0800
committerluxin <luxin7@huawei.com>2018-01-30 15:21:01 +0800
commit61a859f567dde02591bd999ea3b77fa1356d0b9b (patch)
tree8f9460f177d359815b77df6486c60c0230b07990
parentf3d4d722c4fcfe84b8e88eca6dd02543bec013b6 (diff)
Handle the context
Change-Id: I0a9b7c3cf4d11151c2184a52704fc8783537b1d5 Issue-ID: VFC-672 Signed-off-by: luxin <luxin7@huawei.com>
-rw-r--r--ResmanagementService/service/src/main/java/org/onap/vfc/nfvo/resmanagement/service/rest/VnfStatusRoa.java8
1 files changed, 4 insertions, 4 deletions
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<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);