added more logs

This commit is contained in:
Francesco Mangiacrapa 2023-03-13 16:14:38 +01:00
parent 23dae96c83
commit 7ea6719534
2 changed files with 5 additions and 37 deletions

View File

@ -258,7 +258,7 @@ public class ConcessioniLifeCycleManager extends Default3PhaseManager implements
Project indexingProject = request.getDocument();
// Evaluate to display project IDs
log.debug("Evaluating Last ID in relationship chain. Current Concessione ID is {}", indexingProject.getId());
log.info("Evaluating Last ID in relationship chain. Current ID is {}", indexingProject.getId());
try {
ArrayList<Project> projects = new ArrayList<>();
ProjectAccess access = ImplementationProvider.get().getProvidedObjectByClass(ProjectAccess.class);
@ -285,11 +285,11 @@ public class ConcessioniLifeCycleManager extends Default3PhaseManager implements
// order)
Collections.sort(projects, Collections.reverseOrder(new ProjectRelationComparator()));
if (log.isDebugEnabled()) {
if (log.isInfoEnabled()) {
int j = 0;
log.debug("Printing project reverse order....");
log.info("Printing project reverse order....");
for (Project theProject : projects) {
log.debug(++j + ") " + theProject.getId() + " data inizio: "
log.info(++j + ") " + theProject.getId() + " data inizio: "
+ theProject.getTheDocument().get("dataInizioProgetto"));
}
}
@ -323,7 +323,7 @@ public class ConcessioniLifeCycleManager extends Default3PhaseManager implements
toReturn.put("_toHideIds", toHideIds);
toReturn.put("_toDisplayIds", toDisplayId);
log.info("Indexing request for Concessione [ID {}] with to HIDE {} and toDisplay {} ",
log.info("Indexing request for "+indexingProject.getProfileID()+" [ID {}] with to _toHideIds {} and _toDisplayIds {} ",
indexingProject.getId(), toHideIds, toDisplayId);
return toReturn;
} catch (Exception e) {

View File

@ -114,36 +114,4 @@ public class ConcessioniPluginTests extends BasicPluginTest {
});
}
@Test
public void testEvaluateAdditionalIndexParameters() throws IOException {
UseCaseDescriptor ucd = getUCD();
ucd.setId(UCD_ID);
User user = getCurrentUser();
user.setUsername(USERNAME);
Context context = getContextObject();
context.setId(SCOPE_TEST);
context.setName(SCOPE_TEST);
// Project document = TestDocuments.documentMap.get("dummy.json");
//
//
// StepExecutionRequest req = new StepExecutionRequest(ucd, user, context,document, "PUBLISH");
//
// IndexDocumentRequest indexRequest = new IndexDocumentRequest(
// req.getUseCaseDescriptor(),req.getCaller(), req.getContext(),req.getDocument());
//
// ConcessioniLifeCycleManager clfM = new ConcessioniLifeCycleManager();
//
// try {
// clfM.evaluateAdditionalIndexParameters(indexRequest);
// } catch (IndexingException e) {
// // TODO Auto-generated catch block
// e.printStackTrace();
// }
}
}