Skip to content

Commit

Permalink
improve logging of exception
Browse files Browse the repository at this point in the history
Change-Id: I1946b16dbd2712458af442795a85feaf9ea5657a
  • Loading branch information
sbaeurle committed Mar 27, 2023
1 parent 76dc72c commit ba11324
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
}

Expand Down

0 comments on commit ba11324

Please sign in to comment.