mirror of
https://github.com/netbirdio/netbird.git
synced 2025-06-21 02:08:40 +02:00
Fix error logging
This commit is contained in:
parent
aa55fba5ee
commit
ed82ef7fe4
@ -300,8 +300,10 @@ func (c *Client) readLoop(relayConn net.Conn) {
|
||||
log.Debugf("on new heartbeat")
|
||||
msg := messages.MarshalHealthcheck()
|
||||
_, wErr := c.relayConn.Write(msg)
|
||||
if c.serviceIsRunning && !internallyStoppedFlag.isSet() {
|
||||
c.log.Errorf("failed to send heartbeat: %s", wErr)
|
||||
if wErr != nil {
|
||||
if c.serviceIsRunning && !internallyStoppedFlag.isSet() {
|
||||
c.log.Errorf("failed to send heartbeat: %s", wErr)
|
||||
}
|
||||
}
|
||||
hc.Heartbeat()
|
||||
case messages.MsgTypeTransport:
|
||||
|
Loading…
x
Reference in New Issue
Block a user