diff --git a/so-virtualobject/src/main/java/com/pineone/icbms/so/virtualobject/logic/VirtualObjectManagerLogic.java b/so-virtualobject/src/main/java/com/pineone/icbms/so/virtualobject/logic/VirtualObjectManagerLogic.java index e2e9b9c6..d9aaf86f 100644 --- a/so-virtualobject/src/main/java/com/pineone/icbms/so/virtualobject/logic/VirtualObjectManagerLogic.java +++ b/so-virtualobject/src/main/java/com/pineone/icbms/so/virtualobject/logic/VirtualObjectManagerLogic.java @@ -75,11 +75,9 @@ public List searchVirtualObjectList(String location) { @Override public List searchVirtualObjectList(String aspect, String functionality) { - logger.debug("aspect = " + aspect + " functionality = " + functionality); - List virtualObjectList = virtualObjectStore.retrieveByAspectAndFunctionality(aspect, functionality); for(VirtualObject virtualObject : virtualObjectList){ - logger.debug("VirtualObject = " + virtualObject.toString()); + logger.debug("[VirtualObject] ID = " + virtualObject.getId() + " name = " + virtualObject.getVoName()); } return virtualObjectList; } diff --git a/so-virtualobject/src/main/java/com/pineone/icbms/so/virtualobject/pr/VirtualObjectPresentation.java b/so-virtualobject/src/main/java/com/pineone/icbms/so/virtualobject/pr/VirtualObjectPresentation.java index 0a0f7052..9243a733 100644 --- a/so-virtualobject/src/main/java/com/pineone/icbms/so/virtualobject/pr/VirtualObjectPresentation.java +++ b/so-virtualobject/src/main/java/com/pineone/icbms/so/virtualobject/pr/VirtualObjectPresentation.java @@ -89,10 +89,8 @@ public void deleteVirtualObject(@PathVariable String id){ @RequestMapping(value = "/search",method = RequestMethod.POST) @ResponseStatus(HttpStatus.OK) public List findVirtualObject(@RequestBody VirtualObjectTransFormObject virtulaObject){ - - logger.info(LogPrint.inputInfoLogPrint()); + logger.info(LogPrint.LogMethodNamePrint() + " | [aspect] = " + virtulaObject.getAspect() + " [functionality] = " + virtulaObject.getFunctionality()); return virtualObjectManager.searchVirtualObjectList(virtulaObject.getAspect(), virtulaObject.getFunctionality()); - } diff --git a/so-virtualobject/src/main/java/com/pineone/icbms/so/virtualobject/store/mongo/VirtualObjectMongoStore.java b/so-virtualobject/src/main/java/com/pineone/icbms/so/virtualobject/store/mongo/VirtualObjectMongoStore.java index a8364a07..7e6905a1 100644 --- a/so-virtualobject/src/main/java/com/pineone/icbms/so/virtualobject/store/mongo/VirtualObjectMongoStore.java +++ b/so-virtualobject/src/main/java/com/pineone/icbms/so/virtualobject/store/mongo/VirtualObjectMongoStore.java @@ -67,7 +67,6 @@ public List retrieveByLocationAndService(String location, String @Override public List retrieveByAspectAndFunctionality(String aspect, String functionality) { - logger.debug("Aspect = " + aspect + " Functionality = " + functionality); List virtualObjects = new ArrayList<>(); List virtualObjectDataObjects = virtualObjectRepostory.findByAspectAndFunctionality(aspect, functionality); @@ -75,10 +74,6 @@ public List retrieveByAspectAndFunctionality(String aspect, Strin virtualObjects.add(DataObjectToVirtualObject(v)); } - for(VirtualObject virtualObject : virtualObjects){ - logger.debug("VirtualObject = " + virtualObject.toString()); - } - return virtualObjects; }