Skip to content

Commit

Permalink
Gestion threadContext
Browse files Browse the repository at this point in the history
  • Loading branch information
SamuelQuetin committed Dec 20, 2023
1 parent 4c6c20d commit b6a0f17
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions src/main/java/fr/abes/kbart2kafka/utils/CheckFiles.java
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
import fr.abes.kbart2kafka.exception.IllegalFileFormatException;
import fr.abes.kbart2kafka.exception.IllegalProviderException;
import lombok.extern.slf4j.Slf4j;
import org.apache.logging.log4j.ThreadContext;

import java.io.BufferedReader;
import java.io.File;
Expand Down Expand Up @@ -60,9 +59,7 @@ public static void detectTabulations(File file) throws IOException, IllegalFileF
try (BufferedReader reader = new BufferedReader(new FileReader(file))) {
String line;
while ((line = reader.readLine()) != null) {
String nbLine = "";
if (!line.contains("\t")) {
ThreadContext.put("package", file.getName() + ";" + nbLine);
log.error("Message envoyé : {}", "Le fichier ne contient pas de tabulation");
throw new IllegalFileFormatException("Le fichier ne contient pas de tabulation");
}
Expand Down

0 comments on commit b6a0f17

Please sign in to comment.