mirror of
https://github.com/aljazceru/kata-containers.git
synced 2026-02-07 23:54:23 +01:00
Merge pull request #648 from bergwolf/vmconsole
builtin-proxy: print guest console output to logger
This commit is contained in:
@@ -82,7 +82,10 @@ func (p *kataBuiltInProxy) watchConsole(proto, console string, logger *logrus.En
|
||||
go func() {
|
||||
scanner = bufio.NewScanner(conn)
|
||||
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 {
|
||||
|
||||
Reference in New Issue
Block a user