From 0e6399a2c0519dac7f0dd8c5435619bc034055f4 Mon Sep 17 00:00:00 2001 From: Kai Moritz Date: Fri, 1 Nov 2024 15:53:17 +0100 Subject: [PATCH] Bei einem unerwarteten Fehler wird auch der Stacktrace mit ausgegeben --- src/main/java/de/juplo/kafka/ExampleProducer.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/de/juplo/kafka/ExampleProducer.java b/src/main/java/de/juplo/kafka/ExampleProducer.java index b942a58..72fa2dc 100644 --- a/src/main/java/de/juplo/kafka/ExampleProducer.java +++ b/src/main/java/de/juplo/kafka/ExampleProducer.java @@ -50,7 +50,7 @@ public class ExampleProducer } catch (Exception e) { - log.error("{} - Unexpected error: {}!", id, e.toString()); + log.error("{} - Unexpected error!", id, e); } finally { -- 2.20.1