mirror of
https://github.com/zhaojh329/rttys.git
synced 2026-02-27 09:53:21 +08:00
Fix an incorrect log function call.
Signed-off-by: Jianhui Zhao <zhaojh329@gmail.com>
This commit is contained in:
@@ -235,7 +235,7 @@ func handleDeviceConnection(srv *RttyServer, conn net.Conn) {
|
||||
|
||||
err = dev.WriteMsg(msgTypeRegister, "", append([]byte{code}, DevRegErrMsg[code]...))
|
||||
if err != nil {
|
||||
log.Printf("send register to device '%s' fail: %v", dev.id, err)
|
||||
log.Error().Err(err).Msgf("send register to device '%s' fail", dev.id)
|
||||
return
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user