From ba1132490441dd35384e549047dc74f3af3c73f0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Simon=20B=C3=A4urle?= Date: Mon, 27 Mar 2023 09:15:36 +0200 Subject: [PATCH] improve logging of exception Change-Id: I1946b16dbd2712458af442795a85feaf9ea5657a --- .../providers/events/mqtt/MQTTEventListenerProvider.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/org/softwarefactory/keycloak/providers/events/mqtt/MQTTEventListenerProvider.java b/src/main/java/org/softwarefactory/keycloak/providers/events/mqtt/MQTTEventListenerProvider.java index e27ede8..a11d574 100644 --- a/src/main/java/org/softwarefactory/keycloak/providers/events/mqtt/MQTTEventListenerProvider.java +++ b/src/main/java/org/softwarefactory/keycloak/providers/events/mqtt/MQTTEventListenerProvider.java @@ -87,7 +87,7 @@ private void sendMqttMessage(String event) { client.publish(configuration.topic, payload); client.disconnect(); } catch (Exception e) { - logger.log(Level.SEVERE, "Event: {0}", e.getStackTrace()); + logger.log(Level.SEVERE, "Publishing failed!", e); } }