mirror of
https://github.com/kata-containers/kata-containers.git
synced 2025-08-13 13:46:46 +00:00
Merge pull request #4271 from r4f4/runtime-err-check-fix
runtime: do not check for EOF error in console watcher
This commit is contained in:
commit
c88a48be21
@ -1037,15 +1037,13 @@ func (cw *consoleWatcher) start(s *Sandbox) (err error) {
|
||||
}
|
||||
|
||||
if err := scanner.Err(); err != nil {
|
||||
if err == io.EOF {
|
||||
s.Logger().Info("console watcher quits")
|
||||
} else {
|
||||
s.Logger().WithError(err).WithFields(logrus.Fields{
|
||||
"console-protocol": cw.proto,
|
||||
"console-url": cw.consoleURL,
|
||||
"sandbox": s.id,
|
||||
}).Error("Failed to read guest console logs")
|
||||
}
|
||||
s.Logger().WithError(err).WithFields(logrus.Fields{
|
||||
"console-protocol": cw.proto,
|
||||
"console-url": cw.consoleURL,
|
||||
"sandbox": s.id,
|
||||
}).Error("Failed to read guest console logs")
|
||||
} else { // The error is `nil` in case of io.EOF
|
||||
s.Logger().Info("console watcher quits")
|
||||
}
|
||||
}()
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user