Skip to content

Commit

Permalink
Merge pull request #51 from abes-esr/develop
Browse files Browse the repository at this point in the history
merge dev to test
  • Loading branch information
pierre-maraval authored Dec 11, 2024
2 parents 15a3914 + 8db86f9 commit ab7a9e5
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
</parent>
<groupId>fr.abes</groupId>
<artifactId>logskbart-api</artifactId>
<version>1.0.0</version>
<version>1.0.1-SNAPSHOT</version>
<packaging>jar</packaging>
<name>logskbart-api</name>
<description>Api de récupération de logs dans Kafka pour stockage dans BDD et fourniture</description>
Expand Down
4 changes: 3 additions & 1 deletion src/main/java/fr/abes/logskbart/kafka/LogsListener.java
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,9 @@ public void listenInfoKbart2KafkaAndErrorKbart2Kafka(ConsumerRecord<String, Stri

if ((dto.getMessage().contains("Traitement terminé pour fichier " + packageName)) || (dto.getMessage().contains("Traitement refusé du fichier " + packageName))) {
saveDatas(workInProgressMap.get(packageName).getMessages());
if (!packageName.contains("_FORCE")) {
if (!packageName.contains("_FORCE") || workInProgressMap.get(packageName).getMessages().stream().anyMatch(log ->
(log.getNbLine() == -1) && log.getMessage().equals("Format du fichier incorrect")
)) {
createFileBad(packageName);
}
workInProgressMap.remove(packageName);
Expand Down
2 changes: 1 addition & 1 deletion src/main/resources/log4j2.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<!-- CONSOLE -->
<Console name="Console">
<PatternLayout
pattern="%style{%d{ISO8601}}{black} %highlight{%-5level }[%style{%t}{bright,blue}] %style{%C{1.}}{dark,yellow}: %msg%n%throwable" />
pattern="%style{%d{ISO8601}}{white} %highlight{%-5level }[%style{%t}{bright,blue}] %style{%C{1.}}{dark,yellow}: %msg%n%throwable"/>
</Console>
</Appenders>
<Loggers>
Expand Down

0 comments on commit ab7a9e5

Please sign in to comment.