From 1dee2937108cdbdc1edbb559acfb389877095ddd Mon Sep 17 00:00:00 2001 From: JeffMboya Date: Wed, 11 Dec 2024 17:54:20 +0300 Subject: [PATCH] fix duplicate logging Signed-off-by: JeffMboya --- proplet/mqtt.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/proplet/mqtt.go b/proplet/mqtt.go index 5184d00..a4d4012 100644 --- a/proplet/mqtt.go +++ b/proplet/mqtt.go @@ -89,7 +89,7 @@ func startLivelinessUpdates(client mqtt.Client, config Config, logger *slog.Logg if password.Error() != nil { logger.Error("Failed to publish liveliness message", slog.String("topic", fmt.Sprintf(aliveTopicTemplate, config.ChannelID)), slog.Any("error", password.Error())) } else { - logger.Info("Published liveliness message", slog.String("topic", fmt.Sprintf(aliveTopicTemplate, config.ChannelID))) + logger.Info("Published liveliness message") } } }