Skip to content

Commit

Permalink
Make logging 'err' consistent (#12011)
Browse files Browse the repository at this point in the history
  • Loading branch information
samsondav authored Feb 13, 2024
1 parent e78d3b8 commit c97d3c5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions core/services/gateway/connector/connector.go
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ func (c *gatewayConnector) readLoop(gatewayState *gatewayState) {
break
}
if err = msg.Validate(); err != nil {
c.lggr.Errorw("failed to validate message signature", "id", gatewayState.config.Id, "error", err)
c.lggr.Errorw("failed to validate message signature", "id", gatewayState.config.Id, "err", err)
break
}
c.handler.HandleGatewayMessage(ctx, gatewayState.config.Id, msg)
Expand All @@ -175,7 +175,7 @@ func (c *gatewayConnector) reconnectLoop(gatewayState *gatewayState) {
for {
conn, err := gatewayState.wsClient.Connect(ctx, gatewayState.url)
if err != nil {
c.lggr.Errorw("connection error", "url", gatewayState.url, "error", err)
c.lggr.Errorw("connection error", "url", gatewayState.url, "err", err)
} else {
c.lggr.Infow("connected successfully", "url", gatewayState.url)
closeCh := gatewayState.conn.Reset(conn)
Expand Down

0 comments on commit c97d3c5

Please sign in to comment.