Skip to content

Commit

Permalink
Merge pull request #53 from abes-esr/fix_ajout-de-logs-sur-batch
Browse files Browse the repository at this point in the history
- Suppression logs pour debug
  • Loading branch information
EryneKL authored Oct 3, 2024
2 parents 06f819b + ef0a7c4 commit 3f0d8a5
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -64,12 +64,10 @@ public void beforeStep(StepExecution stepExecution) {
this.fichierSauvegardeSuppTxt = new FichierSauvegardeSuppTxt();
this.fichierSauvegardeSuppTxt.setPath(Path.of(String.valueOf(executionContext.get("fichierTxtPath"))));
this.fichierSauvegardeSuppTxt.setFilename(String.valueOf(executionContext.get("fichierTxtName")));
log.info("Initialisation fichier txt: " + this.fichierSauvegardeSuppTxt.getPath() + this.fichierSauvegardeSuppTxt.getFilename());

this.fichierSauvegardeSuppcsv = new FichierSauvegardeSuppCsv(this.referenceService);
this.fichierSauvegardeSuppcsv.setPath(Path.of(String.valueOf(executionContext.get("fichierCsvPath"))));
this.fichierSauvegardeSuppcsv.setFilename(String.valueOf(executionContext.get("fichierCsvName")));
log.info("Initialisation fichier csv: " + this.fichierSauvegardeSuppTxt.getPath() + this.fichierSauvegardeSuppTxt.getFilename());

log.info(Constant.POUR_LA_DEMANDE + this.demande.getNumDemande());
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,6 @@ public FichierSauvegardeSuppCsv(ReferenceService referenceService) {
}

public void writePpnInFile(String ppn, Exemplaire exemplaire) throws StorageException {
log.debug("Ecriture du fichier sur chemin: " + this.getPath().resolve(this.getFilename()));
try (FileWriter fw = new FileWriter(this.getPath().resolve(this.getFilename()).toString(), true);
BufferedWriter bw = new BufferedWriter(fw);
PrintWriter out = new PrintWriter(bw)) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@
public class FichierSauvegardeSuppTxt extends AbstractFichier implements Fichier {

public void writePpnInFile(String ppn, Exemplaire exemplaire) throws StorageException {
log.info("Ecriture du fichier sur chemin: " + this.getPath().resolve(this.getFilename()));
try (FileWriter fw = new FileWriter(this.getPath().resolve(this.getFilename()).toString(), true);
BufferedWriter bw = new BufferedWriter(fw);
PrintWriter out = new PrintWriter(bw)) {
Expand Down

0 comments on commit 3f0d8a5

Please sign in to comment.