From 08cb6eb54e43d9f41fe61d206db1fc0ce4bb0ff0 Mon Sep 17 00:00:00 2001 From: "francesco.mangiacrapa" Date: Tue, 16 Apr 2024 10:54:16 +0200 Subject: [PATCH] removed some logs --- .../service/rest/ProfiledDocuments.java | 17 +++++------------ 1 file changed, 5 insertions(+), 12 deletions(-) diff --git a/geoportal-service/src/main/java/org/gcube/application/geoportal/service/rest/ProfiledDocuments.java b/geoportal-service/src/main/java/org/gcube/application/geoportal/service/rest/ProfiledDocuments.java index 72e1310..f47b07d 100644 --- a/geoportal-service/src/main/java/org/gcube/application/geoportal/service/rest/ProfiledDocuments.java +++ b/geoportal-service/src/main/java/org/gcube/application/geoportal/service/rest/ProfiledDocuments.java @@ -123,7 +123,7 @@ public class ProfiledDocuments { }.execute().getResult(); Status status = theNewProject.getLifecycleInformation().getLastOperationStatus(); - // IF last operation status is not ERROR, notify PROJECT_CREATED event + // If latest operation status is not ERROR, notify PROJECT_CREATED event if (status != null && !status.equals(LifecycleInformation.Status.ERROR)) { // notifying the Event.PROJECT_CREATED; ItemObserved item = new ItemObserved(); @@ -163,7 +163,7 @@ public class ProfiledDocuments { }.execute().getResult(); Status status = theUpdatedProject.getLifecycleInformation().getLastOperationStatus(); - // IF last operation status is not ERROR, notify PROJECT_UPDATED event + // If latest operation status is not ERROR, notify PROJECT_UPDATED event if (status != null && !status.equals(LifecycleInformation.Status.ERROR)) { ItemObserved item = new ItemObserved(); @@ -226,7 +226,7 @@ public class ProfiledDocuments { } }.execute().getResult(); - // IF deleted, notify PROJECT_DELETED event + // If deleted, notify PROJECT_DELETED event if (deleted) { ItemObserved item = new ItemObserved(); EventManager.Event event = Event.PROJECT_DELETED; @@ -321,17 +321,10 @@ public class ProfiledDocuments { return manager.performStep(id, performStepRequest.getStepID(), performStepRequest.getOptions()); } }.execute().getResult(); - - log.info("Starting event..."); - - if(log.isInfoEnabled()) { - List allFields = Arrays.asList(PerformStepRequest.class.getDeclaredFields()); - String fieldsName = allFields.stream().map(e -> e.getName()).collect(Collectors.joining(",")); - log.info("Fields name: "+fieldsName); - } Status status = theProject.getLifecycleInformation().getLastOperationStatus(); - // IF last operation status is not ERROR, notify LIFECYCLE_STEP_PERFORMED event + // If latest operation status is not ERROR, notify LIFECYCLE_STEP_PERFORMED + // event if (status != null && !status.equals(LifecycleInformation.Status.ERROR)) { ItemObserved item = new ItemObserved(); EventManager.Event event = Event.LIFECYCLE_STEP_PERFORMED;