From b207c9ae74c5729581b553ec6746724c2c710d5c Mon Sep 17 00:00:00 2001 From: wanyaoqi <18528551+wanyaoqi@users.noreply.github.com> Date: Mon, 5 Aug 2024 14:47:53 +0800 Subject: [PATCH] fix(host): too much qga ping logs (#20959) --- pkg/hostman/monitor/qga/qga.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkg/hostman/monitor/qga/qga.go b/pkg/hostman/monitor/qga/qga.go index bc1c408acc..eeafe93e24 100644 --- a/pkg/hostman/monitor/qga/qga.go +++ b/pkg/hostman/monitor/qga/qga.go @@ -118,7 +118,7 @@ func (qga *QemuGuestAgent) Close() error { } func (qga *QemuGuestAgent) write(cmd []byte) error { - log.Infof("QGA Write %s: %s", qga.id, string(cmd)) + log.Debugf("QGA Write %s: %s", qga.id, string(cmd)) length, index := len(cmd), 0 for index < length { i, err := qga.rwc.Write(cmd) @@ -201,7 +201,7 @@ func (qga *QemuGuestAgent) execCmd(cmd *monitor.Command, expectResp bool, readTi } var objmap map[string]*json.RawMessage b := qga.scanner.Bytes() - log.Infof("qga response %s", b) + log.Debugf("qga response %s", b) if err := json.Unmarshal(b, &objmap); err != nil { return nil, errors.Wrap(err, "unmarshal qga res") }