From 057035f073b7f6db51efaab88d40fec1bd895482 Mon Sep 17 00:00:00 2001 From: Kai Moritz Date: Sat, 12 Nov 2022 11:22:46 +0100 Subject: [PATCH] =?utf8?q?Logging-Level=20auf=20INFO=20ge=C3=A4ndert,=20da?= =?utf8?q?mit=20die=20Logging-Konfig=20nicht=20n=C3=B6tig=20ist?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- src/main/java/de/juplo/kafka/Application.java | 2 +- src/main/resources/application.yml | 4 ---- 2 files changed, 1 insertion(+), 5 deletions(-) diff --git a/src/main/java/de/juplo/kafka/Application.java b/src/main/java/de/juplo/kafka/Application.java index 944a7a7..9781a7a 100644 --- a/src/main/java/de/juplo/kafka/Application.java +++ b/src/main/java/de/juplo/kafka/Application.java @@ -26,7 +26,7 @@ public class Application implements ApplicationRunner kafkaTemplate.send("test", key, value); listenableFuture.addCallback( - result -> log.debug( + result -> log.info( "Sent {}={} to partition={}, offset={}", result.getProducerRecord().key(), result.getProducerRecord().value(), diff --git a/src/main/resources/application.yml b/src/main/resources/application.yml index a6bb65e..8d1d298 100644 --- a/src/main/resources/application.yml +++ b/src/main/resources/application.yml @@ -1,7 +1,3 @@ spring: kafka: bootstrap-servers: :9092 -logging: - level: - root: INFO - de.juplo: DEBUG -- 2.20.1