Remove unnecessaray log

This commit is contained in:
Dominic Grimm 2024-02-18 20:37:20 +01:00
parent 588998bce7
commit 2f6537dc8e

View file

@ -73,12 +73,11 @@ class MqttEventListenerProvider(
.withRetained(mqttOptions.retained)
val future = Source.single(msg).runWith(mqttSink)
future.onComplete {
case Success(value) =>
logger.log(logging.Level.INFO, value.toString())
case Failure(exception) =>
logger.log(
logging.Level.SEVERE,
s"Failed to publish message: ${exception.getMessage()}"
)
case Success(_) => {}
}
end MqttEventListenerProvider