added debug log

This commit is contained in:
Francesco Mangiacrapa 2024-04-12 15:49:29 +02:00
parent c8785efb0c
commit ce2aaba503
1 changed files with 11 additions and 0 deletions

View File

@ -1,5 +1,10 @@
package org.gcube.application.geoportal.service.rest;
import java.lang.reflect.Field;
import java.util.Arrays;
import java.util.List;
import java.util.stream.Collectors;
import javax.ws.rs.Consumes;
import javax.ws.rs.DELETE;
import javax.ws.rs.DefaultValue;
@ -314,6 +319,12 @@ public class ProfiledDocuments {
}
}.execute().getResult();
if(log.isDebugEnabled()) {
List<Field> allFields = Arrays.asList(StepExecutionRequest.class.getDeclaredFields());
String fieldsName = allFields.stream().map(e -> e.getName()).collect(Collectors.joining(","));
System.out.println("Fields name: "+fieldsName);
}
Status status = theProject.getLifecycleInformation().getLastOperationStatus();
// IF last operation status is not ERROR, notify LIFECYCLE_STEP_PERFORMED event
if (status != null && !status.equals(LifecycleInformation.Status.ERROR)) {