removed some logs

This commit is contained in:
Francesco Mangiacrapa 2024-04-16 10:54:16 +02:00
parent e6fac1f6e1
commit 08cb6eb54e
1 changed files with 5 additions and 12 deletions

View File

@ -123,7 +123,7 @@ public class ProfiledDocuments {
}.execute().getResult(); }.execute().getResult();
Status status = theNewProject.getLifecycleInformation().getLastOperationStatus(); 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)) { if (status != null && !status.equals(LifecycleInformation.Status.ERROR)) {
// notifying the Event.PROJECT_CREATED; // notifying the Event.PROJECT_CREATED;
ItemObserved<Project> item = new ItemObserved<Project>(); ItemObserved<Project> item = new ItemObserved<Project>();
@ -163,7 +163,7 @@ public class ProfiledDocuments {
}.execute().getResult(); }.execute().getResult();
Status status = theUpdatedProject.getLifecycleInformation().getLastOperationStatus(); 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)) { if (status != null && !status.equals(LifecycleInformation.Status.ERROR)) {
ItemObserved<Project> item = new ItemObserved<Project>(); ItemObserved<Project> item = new ItemObserved<Project>();
@ -226,7 +226,7 @@ public class ProfiledDocuments {
} }
}.execute().getResult(); }.execute().getResult();
// IF deleted, notify PROJECT_DELETED event // If deleted, notify PROJECT_DELETED event
if (deleted) { if (deleted) {
ItemObserved<Project> item = new ItemObserved<Project>(); ItemObserved<Project> item = new ItemObserved<Project>();
EventManager.Event event = Event.PROJECT_DELETED; EventManager.Event event = Event.PROJECT_DELETED;
@ -322,16 +322,9 @@ public class ProfiledDocuments {
} }
}.execute().getResult(); }.execute().getResult();
log.info("Starting event...");
if(log.isInfoEnabled()) {
List<Field> 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(); 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)) { if (status != null && !status.equals(LifecycleInformation.Status.ERROR)) {
ItemObserved<Project> item = new ItemObserved<Project>(); ItemObserved<Project> item = new ItemObserved<Project>();
EventManager.Event event = Event.LIFECYCLE_STEP_PERFORMED; EventManager.Event event = Event.LIFECYCLE_STEP_PERFORMED;