Skip to content

Commit ba11324

Browse files
committed
improve logging of exception
Change-Id: I1946b16dbd2712458af442795a85feaf9ea5657a
1 parent 76dc72c commit ba11324

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/org/softwarefactory/keycloak/providers/events/mqtt/MQTTEventListenerProvider.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ private void sendMqttMessage(String event) {
8787
client.publish(configuration.topic, payload);
8888
client.disconnect();
8989
} catch (Exception e) {
90-
logger.log(Level.SEVERE, "Event: {0}", e.getStackTrace());
90+
logger.log(Level.SEVERE, "Publishing failed!", e);
9191
}
9292
}
9393

0 commit comments

Comments
 (0)