Skip to content

Commit

Permalink
agent: add log to print error that is making the agent reconnect (#3451)
Browse files Browse the repository at this point in the history
add log to print error that is making the agent reconnect
  • Loading branch information
mathnogueira committed Dec 18, 2023
1 parent 1033dbf commit f78c51b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions agent/client/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -188,6 +188,7 @@ func (c *Client) handleDisconnectionError(inputErr error) (bool, error) {
return false, inputErr
}

log.Printf("Reconnecting agent due to error: %s", inputErr.Error())
err := retry.Do(func() error {
return c.reconnect()
})
Expand Down

0 comments on commit f78c51b

Please sign in to comment.