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); } }