mirror of
https://github.com/kata-containers/kata-containers.git
synced 2025-08-28 12:31:04 +00:00
Merge pull request #648 from bergwolf/vmconsole
builtin-proxy: print guest console output to logger
This commit is contained in:
commit
dcf3229b37
@ -82,7 +82,10 @@ func (p *kataBuiltInProxy) watchConsole(proto, console string, logger *logrus.En
|
|||||||
go func() {
|
go func() {
|
||||||
scanner = bufio.NewScanner(conn)
|
scanner = bufio.NewScanner(conn)
|
||||||
for scanner.Scan() {
|
for scanner.Scan() {
|
||||||
fmt.Printf("[SB-%s] vmconsole: %s\n", p.sandboxID, scanner.Text())
|
logger.WithFields(logrus.Fields{
|
||||||
|
"sandbox": p.sandboxID,
|
||||||
|
"vmconsole": scanner.Text(),
|
||||||
|
}).Debug("reading guest console")
|
||||||
}
|
}
|
||||||
|
|
||||||
if err := scanner.Err(); err != nil {
|
if err := scanner.Err(); err != nil {
|
||||||
|
Loading…
Reference in New Issue
Block a user