Skip to content

Commit

Permalink
FIX : Ajout affichage méthode appelant dans incrementCurrentNbLignes
Browse files Browse the repository at this point in the history
  • Loading branch information
pierre-maraval committed Sep 27, 2024
1 parent 05fe9da commit a889a26
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -221,7 +221,7 @@ private void ajout469(String ppnNoticeBouquet, String ppn, LigneKbartConnect lig
} catch (IOException e) {
//cas d'une erreur de communication avec le Sudoc, on se relogge au cbs, et on retry la méthode
try {
log.debug("erreur de communication avec le Sudoc, tentative de reconnexion");
log.error("erreur de communication avec le Sudoc, tentative de reconnexion");
service.disconnect();
service.authenticate(serveurSudoc, portSudoc, loginSudoc, passwordSudoc);
} catch (CBSException ex) {
Expand Down
4 changes: 3 additions & 1 deletion src/main/java/fr/abes/kafkatosudoc/kafka/WorkInProgress.java
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,9 @@ public void addNotice(T notice) {
}

public void incrementCurrentNbLignes() {
log.debug("Current line : " + this.currentNbLines.incrementAndGet() + " | total lines : " + this.getNbLinesTotal());
StackTraceElement[] stack = new Throwable().getStackTrace();
StackTraceElement caller = stack[1];
log.debug("Méthode" + caller.getMethodName() + "Current line : " + this.currentNbLines.incrementAndGet() + " | total lines : " + this.getNbLinesTotal());
}

public void addErrorMessagesConnectionCbs(String message) {
Expand Down

0 comments on commit a889a26

Please sign in to comment.