mirror of
https://github.com/netbirdio/netbird.git
synced 2025-06-21 10:18:50 +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")
|
log.Debugf("on new heartbeat")
|
||||||
msg := messages.MarshalHealthcheck()
|
msg := messages.MarshalHealthcheck()
|
||||||
_, wErr := c.relayConn.Write(msg)
|
_, wErr := c.relayConn.Write(msg)
|
||||||
if c.serviceIsRunning && !internallyStoppedFlag.isSet() {
|
if wErr != nil {
|
||||||
c.log.Errorf("failed to send heartbeat: %s", wErr)
|
if c.serviceIsRunning && !internallyStoppedFlag.isSet() {
|
||||||
|
c.log.Errorf("failed to send heartbeat: %s", wErr)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
hc.Heartbeat()
|
hc.Heartbeat()
|
||||||
case messages.MsgTypeTransport:
|
case messages.MsgTypeTransport:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user