mirror of
https://github.com/kata-containers/kata-containers.git
synced 2025-06-24 14:32:33 +00:00
Merge pull request #166 from kata-containers/egernst-patch-1
qmp: remove chatty log
This commit is contained in:
commit
7183b12b07
@ -267,10 +267,6 @@ func (q *QMP) readLoop(fromVMCh chan<- []byte) {
|
|||||||
|
|
||||||
for scanner.Scan() {
|
for scanner.Scan() {
|
||||||
line := scanner.Bytes()
|
line := scanner.Bytes()
|
||||||
if q.cfg.Logger.V(1) {
|
|
||||||
q.cfg.Logger.Infof("read from QMP: %s", string(line))
|
|
||||||
}
|
|
||||||
|
|
||||||
// Since []byte channel type transfer slice info(include slice underlying array pointer, len, cap)
|
// Since []byte channel type transfer slice info(include slice underlying array pointer, len, cap)
|
||||||
// between channel sender and receiver. scanner.Bytes() returned slice's underlying array
|
// between channel sender and receiver. scanner.Bytes() returned slice's underlying array
|
||||||
// may point to data that will be overwritten by a subsequent call to Scan(reference from:
|
// may point to data that will be overwritten by a subsequent call to Scan(reference from:
|
||||||
@ -442,7 +438,6 @@ func (q *QMP) writeNextQMPCommand(cmdQueue *list.List) {
|
|||||||
}
|
}
|
||||||
cmdQueue.Remove(cmdEl)
|
cmdQueue.Remove(cmdEl)
|
||||||
}
|
}
|
||||||
q.cfg.Logger.Infof("%s", string(encodedCmd))
|
|
||||||
encodedCmd = append(encodedCmd, '\n')
|
encodedCmd = append(encodedCmd, '\n')
|
||||||
if unixConn, ok := q.conn.(*net.UnixConn); ok && len(cmd.oob) > 0 {
|
if unixConn, ok := q.conn.(*net.UnixConn); ok && len(cmd.oob) > 0 {
|
||||||
_, _, err = unixConn.WriteMsgUnix(encodedCmd, cmd.oob, nil)
|
_, _, err = unixConn.WriteMsgUnix(encodedCmd, cmd.oob, nil)
|
||||||
|
Loading…
Reference in New Issue
Block a user