We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 365def9 + 2e21f51 commit 0d93f59Copy full SHA for 0d93f59
src/runtime/virtcontainers/sandbox.go
@@ -1275,12 +1275,15 @@ func (cw *consoleWatcher) start(s *Sandbox) (err error) {
1275
1276
go func() {
1277
for scanner.Scan() {
1278
- s.Logger().WithFields(logrus.Fields{
1279
- "console-protocol": cw.proto,
1280
- "console-url": cw.consoleURL,
1281
- "sandbox": s.id,
1282
- "vmconsole": scanner.Text(),
1283
- }).Debug("reading guest console")
+ text := scanner.Text()
+ if text != "" {
+ s.Logger().WithFields(logrus.Fields{
+ "console-protocol": cw.proto,
+ "console-url": cw.consoleURL,
+ "sandbox": s.id,
1284
+ "vmconsole": text,
1285
+ }).Debug("reading guest console")
1286
+ }
1287
}
1288
1289
if err := scanner.Err(); err != nil {
0 commit comments