diff --git a/api/api-referential/referential-commons/src/main/java/fr/gouv/vitamui/referential/common/service/VitamAgencyService.java b/api/api-referential/referential-commons/src/main/java/fr/gouv/vitamui/referential/common/service/VitamAgencyService.java index bc326eca493461f6fe892ddfc57f431a426d287b..8c845c6734cca3d6d53bc94c325ee7a65b4865ab 100644 --- a/api/api-referential/referential-commons/src/main/java/fr/gouv/vitamui/referential/common/service/VitamAgencyService.java +++ b/api/api-referential/referential-commons/src/main/java/fr/gouv/vitamui/referential/common/service/VitamAgencyService.java @@ -152,7 +152,6 @@ public class VitamAgencyService { RequestResponse r = importAgencies(vitamContext, actualAgencies.stream() .filter( agency -> !id.equals(agency.getId()) ) .collect(Collectors.toList())); - LOGGER.error("is ok ? {}", r.isOk()); return r.isOk(); } diff --git a/api/api-referential/referential-internal/src/main/java/fr/gouv/vitamui/referential/internal/server/probativevalue/ProbativeValueInternalService.java b/api/api-referential/referential-internal/src/main/java/fr/gouv/vitamui/referential/internal/server/probativevalue/ProbativeValueInternalService.java index 30d2f87830289aadc5700c2c8fd0bcc87e673462..9f5091026d3174dd0d901e66106be101c0bdada6 100644 --- a/api/api-referential/referential-internal/src/main/java/fr/gouv/vitamui/referential/internal/server/probativevalue/ProbativeValueInternalService.java +++ b/api/api-referential/referential-internal/src/main/java/fr/gouv/vitamui/referential/internal/server/probativevalue/ProbativeValueInternalService.java @@ -126,10 +126,10 @@ public class ProbativeValueInternalService { File file = new File(workspaceOperationPath, operationId + ".json"); FileUtils.copyInputStreamToFile(reportStream, file); } catch (VitamClientException e) { - LOGGER.error(e.getMessage()); + LOGGER.error("Error while getting probative value report from Vitam", e.getMessage()); throw new InternalServerException("Unable to get Probative Value Report from VITAM", e); } catch (IOException e) { - LOGGER.error(e.getMessage()); + LOGGER.error("Error on probative value report", e.getMessage()); throw new InternalServerException("Unable to create JSON from Probative Value Report", e); } @@ -153,11 +153,11 @@ public class ProbativeValueInternalService { dataMap.put("report", report); PdfFileGenerator.createPdf(odtTemplate, pdfOutputStream, dataMap); } catch (Exception e) { - LOGGER.error(e.getMessage()); + LOGGER.error("Unable to create PDF from Probative Value Report template ODT", e.getMessage()); throw new InternalServerException("Unable to create PDF from Probative Value Report template ODT", e); } } catch (InvalidParseOperationException | VitamClientException exc) { - LOGGER.error(exc.getMessage()); + LOGGER.error("Unable to create PDF from Probative Value Report Json value", exc.getMessage()); throw new InternalServerException("Unable to create PDF from Probative Value Report Json value", exc); } @@ -172,7 +172,7 @@ public class ProbativeValueInternalService { streams.put(operationId + ".json", new FileInputStream(jsonFile)); streams.put(operationId + ".pdf", new FileInputStream(pdfFile)); } catch (FileNotFoundException e) { - LOGGER.error(e.getMessage()); + LOGGER.error("Unable to generate ZIP", e.getMessage()); throw new InternalServerException(String.format("Unable to generate ZIP: %s", e.getMessage()), e); } ZipUtils.generate(streams, outputStream); diff --git a/ui/ui-frontend/projects/referential/src/app/context/context-preview/context-preview.component.ts b/ui/ui-frontend/projects/referential/src/app/context/context-preview/context-preview.component.ts index 4c21fdedcf4184cb80a721510cb88de7b55cf571..f330f139cb216c60ead6215890c070483e671925 100644 --- a/ui/ui-frontend/projects/referential/src/app/context/context-preview/context-preview.component.ts +++ b/ui/ui-frontend/projects/referential/src/app/context/context-preview/context-preview.component.ts @@ -98,7 +98,6 @@ export class ContextPreviewComponent implements OnInit { ); }); } else { - console.log('ResetForm: ', this.tabs.selectedIndex); this.tabLinks[this.tabs.selectedIndex].resetForm(this.context); } }