From d26a298d8a6084c0bcd0ca11b1b2e7028a13d005 Mon Sep 17 00:00:00 2001 From: Orne Brocaar Date: Thu, 18 Jun 2020 09:34:35 +0200 Subject: [PATCH] Fix gateway_id in log message. --- internal/integration/mqtt/backend.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/integration/mqtt/backend.go b/internal/integration/mqtt/backend.go index 352ddd62..144ebcb9 100644 --- a/internal/integration/mqtt/backend.go +++ b/internal/integration/mqtt/backend.go @@ -377,7 +377,7 @@ func (b *Backend) handleDownlinkFrame(c paho.Client, msg paho.Message) { } var gatewayID lorawan.EUI64 - copy(gatewayID[:], downlinkFrame.Items[0].GetTxInfo().GetGatewayId()) + copy(gatewayID[:], downlinkFrame.GatewayId) log.WithFields(log.Fields{ "gateway_id": gatewayID,