From c37ae5cd0ef29b2929815927af8d5815bd672029 Mon Sep 17 00:00:00 2001 From: fengcaiwen Date: Mon, 2 Oct 2023 12:53:41 +0800 Subject: [PATCH] chore: update log --- pkg/daemon/action/connect.go | 2 +- pkg/util/util_test.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/pkg/daemon/action/connect.go b/pkg/daemon/action/connect.go index b4b4dae51..ccea66263 100644 --- a/pkg/daemon/action/connect.go +++ b/pkg/daemon/action/connect.go @@ -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 } diff --git a/pkg/util/util_test.go b/pkg/util/util_test.go index 8e2ec85ce..8051a3baf 100644 --- a/pkg/util/util_test.go +++ b/pkg/util/util_test.go @@ -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")