Skip to content

Commit

Permalink
chore: update log
Browse files Browse the repository at this point in the history
  • Loading branch information
fengcaiwen authored and wencaiwulue committed Oct 2, 2023
1 parent 5bcba29 commit c37ae5c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pkg/daemon/action/connect.go
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ func (svr *Server) Connect(req *rpc.ConnectRequest, resp rpc.Daemon_ConnectServe
config.Image = req.Image
err = svr.connect.DoConnect(sshCtx)
if err != nil {
log.Infof("do connect error: %v", err)
log.Errorf("do connect error: %v", err)
svr.connect.Cleanup()
return err
}
Expand Down
2 changes: 1 addition & 1 deletion pkg/util/util_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ func TestPing(t *testing.T) {
buf := gopacket.NewSerializeBuffer()
err := gopacket.SerializeLayers(buf, opts, &icmpLayer, &ipLayer)
if err != nil {
log.Infof("failed to serialize icmp packet, err: %v", err)
log.Errorf("failed to serialize icmp packet, err: %v", err)
return
}
ipConn, err := net.ListenPacket("ip4:icmp", "localhost")
Expand Down

0 comments on commit c37ae5c

Please sign in to comment.