mirror of
https://github.com/yunionio/cloudpods.git
synced 2026-09-01 15:07:17 +08:00
fix(host): too much qga ping logs (#20959)
This commit is contained in:
@@ -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")
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user