Remove various unnecessary info messages

This commit is contained in:
George Kalampokis 2022-02-28 15:24:10 +02:00
parent 9f88bdae69
commit 5a3f871c58
3 changed files with 1 additions and 10 deletions

View File

@ -44,7 +44,6 @@ public class ContactEmail {
@RequestMapping(method = RequestMethod.POST, path = "public", consumes = "application/x-www-form-urlencoded", produces = "application/json") @RequestMapping(method = RequestMethod.POST, path = "public", consumes = "application/x-www-form-urlencoded", produces = "application/json")
public @ResponseBody public @ResponseBody
ResponseEntity sendContactEmailNoAuth(@ModelAttribute PublicContactEmailModel contactEmailModel) { ResponseEntity sendContactEmailNoAuth(@ModelAttribute PublicContactEmailModel contactEmailModel) {
logger.info(contactEmailModel.toString());
try { try {
this.contactEmailManager.sendContactEmailNoAuth(contactEmailModel); this.contactEmailManager.sendContactEmailNoAuth(contactEmailModel);
return ResponseEntity.status(HttpStatus.NO_CONTENT).body(new ResponseItem().status(ApiMessageCode.SUCCESS_MESSAGE)); return ResponseEntity.status(HttpStatus.NO_CONTENT).body(new ResponseItem().status(ApiMessageCode.SUCCESS_MESSAGE));

View File

@ -894,9 +894,6 @@ public class DataManagementPlanManager {
List<CompletableFuture<Dataset>> futures = new LinkedList<>(); List<CompletableFuture<Dataset>> futures = new LinkedList<>();
for (Dataset dataset : newDmp.getDataset()) { for (Dataset dataset : newDmp.getDataset()) {
Dataset tempDataset = datasetDao.find(dataset.getId()); Dataset tempDataset = datasetDao.find(dataset.getId());
if (tempDataset.getProfile() != null) {
logger.info(tempDataset.getProfile().toString());
}
try { try {
List<Tag> tags = new ArrayList<>(); List<Tag> tags = new ArrayList<>();
eu.eudat.elastic.entities.Dataset elastic = apiContext.getOperationsContext().getElasticRepository().getDatasetRepository().findDocument(dataset.getId().toString()); eu.eudat.elastic.entities.Dataset elastic = apiContext.getOperationsContext().getElasticRepository().getDatasetRepository().findDocument(dataset.getId().toString());
@ -1721,8 +1718,6 @@ public class DataManagementPlanManager {
this.datasetManager.createOrUpdate(datasetWizard, principal); this.datasetManager.createOrUpdate(datasetWizard, principal);
// datasets.add(new DatasetListingModel().fromDataModel(dataset)); // datasets.add(new DatasetListingModel().fromDataModel(dataset));
} }
//logger.info(dm.toString());
} }
return dataManagementPlans; return dataManagementPlans;
@ -1845,9 +1840,7 @@ public class DataManagementPlanManager {
List<DMP> dmps = databaseRepository.getDmpDao().getWithCriteria(criteria).toList(); List<DMP> dmps = databaseRepository.getDmpDao().getWithCriteria(criteria).toList();
for (DMP dmp: dmps) { for (DMP dmp: dmps) {
try { try {
if (dmp.getUsers() != null) { if (dmp.getUsers() == null) {
logger.info(dmp.getUsers().toString());
} else {
UUID dmpId = dmp.getId(); UUID dmpId = dmp.getId();
dmp.setUsers(new HashSet<>(apiContext.getOperationsContext().getDatabaseRepository().getUserDmpDao().asQueryable().where((builder, root) -> builder.equal(root.get("dmp").get("id"), dmpId)).toList())); dmp.setUsers(new HashSet<>(apiContext.getOperationsContext().getDatabaseRepository().getUserDmpDao().asQueryable().where((builder, root) -> builder.equal(root.get("dmp").get("id"), dmpId)).toList()));
} }

View File

@ -16,7 +16,6 @@ public class PageAdapter extends XmlAdapter<Object, HashMap<String, String>> {
Element data = (Element)v; Element data = (Element)v;
HashMap<String, String> result = new HashMap<>(); HashMap<String, String> result = new HashMap<>();
generateMap(data, result, "field"); generateMap(data, result, "field");
logger.info(result.toString());
return result; return result;
} }