Skip to content

Commit

Permalink
Logging errors writing heartbeat
Browse files Browse the repository at this point in the history
  • Loading branch information
André Hahn committed Oct 25, 2019
1 parent 26e1c39 commit 9f7627f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions agent/agent.go
Original file line number Diff line number Diff line change
Expand Up @@ -308,6 +308,7 @@ func (a *Agent) heartbeat() {
return
}
if _, err := a.conn.Write(hbd); err != nil {
logger.Log.Errorf("Failed to write heartbeat to socket: %v", err)
return
}
case <-a.chDie:
Expand Down

0 comments on commit 9f7627f

Please sign in to comment.