Skip to content

Commit

Permalink
fix duplicate logging
Browse files Browse the repository at this point in the history
Signed-off-by: JeffMboya <jangina.mboya@gmail.com>
  • Loading branch information
JeffMboya committed Dec 11, 2024
1 parent 74a843f commit 6b19242
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion proplet/mqtt.go
Original file line number Diff line number Diff line change
Expand Up @@ -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")
}
}
}
Expand Down

0 comments on commit 6b19242

Please sign in to comment.