Skip to content

Commit

Permalink
topic manquant
Browse files Browse the repository at this point in the history
  • Loading branch information
SamuelQuetin committed Nov 6, 2023
1 parent 73fe744 commit c8ae26c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main/java/fr/abes/logskbart/kafka/LogsListener.java
Original file line number Diff line number Diff line change
Expand Up @@ -39,10 +39,10 @@ public class LogsListener {
* @param message le message kafka
* @throws IOException exception levée
*/
@KafkaListener(topics = {"errorkbart2kafka", "bestppn.endoftraitment"}, groupId = "logskbart", containerFactory = "kafkaLogsListenerContainerFactory")
@KafkaListener(topics = {"errorkbart2kafka", "infokbart2kafka", "bestppn.endoftraitment"}, groupId = "logskbart", containerFactory = "kafkaLogsListenerContainerFactory")
public void listenInfoKbart2KafkaAndErrorKbart2Kafka(ConsumerRecord<String, String> message) throws IOException {

if (message.topic().equals("errorkbart2kafka")) {
if (message.topic().equals("errorkbart2kafka") || message.topic().equals("infokbart2kafka")) {
Kbart2KafkaDto dto = mapper.readValue(message.value(), Kbart2KafkaDto.class);
LogKbart entity = logsMapper.map(dto, LogKbart.class);
Timestamp timestamp = new Timestamp(message.timestamp());
Expand Down

0 comments on commit c8ae26c

Please sign in to comment.