diff options
-rw-r--r-- | device/device.go | 2 | ||||
-rw-r--r-- | device/send.go | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/device/device.go b/device/device.go index e7d70c4..5f128fc 100644 --- a/device/device.go +++ b/device/device.go @@ -158,7 +158,7 @@ func deviceUpdateState(device *Device) { switch newIsUp { case true: if err := device.BindUpdate(); err != nil { - device.log.Error.Printf("Unable to update bind: %v\n", err) + device.log.Error.Println("Unable to update bind:", err) device.isUp.Set(false) break } diff --git a/device/send.go b/device/send.go index bc51fa6..c75d23e 100644 --- a/device/send.go +++ b/device/send.go @@ -174,7 +174,7 @@ func (peer *Peer) SendHandshakeInitiation(isRetry bool) error { err = peer.SendBuffer(packet) if err != nil { - peer.device.log.Error.Println(peer, "- Failed to send handshake initiation", err) + peer.device.log.Error.Println(peer, "- Failed to send handshake initiation:", err) } peer.timersHandshakeInitiated() @@ -212,7 +212,7 @@ func (peer *Peer) SendHandshakeResponse() error { err = peer.SendBuffer(packet) if err != nil { - peer.device.log.Error.Println(peer, "- Failed to send handshake response", err) + peer.device.log.Error.Println(peer, "- Failed to send handshake response:", err) } return err } |