Skip to content

Commit

Permalink
Fix log key ("c.Topic" -> "topic")
Browse files Browse the repository at this point in the history
  • Loading branch information
mkuratczyk committed Aug 19, 2024
1 parent 1fe309d commit 4aeb8b4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/mqtt_client/consumer.go
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ func (c MqttConsumer) Start(ctx context.Context, subscribed chan bool) {
if token.Error() != nil {
log.Error("failed to subscribe", "consumerId", c.Id, "error", token.Error())
}
log.Info("consumer started", "consumerId", c.Id, "c.Topic", c.Topic)
log.Info("consumer started", "consumerId", c.Id, "topic", c.Topic)

// TODO: currently we can consume more than ConsumerCount messages
for msgsReceived < c.Config.ConsumeCount {
Expand Down

0 comments on commit 4aeb8b4

Please sign in to comment.