mirror of
https://github.com/kata-containers/kata-containers.git
synced 2025-09-20 00:07:55 +00:00
Merge pull request #4746 from liubin/fix/4745-add-log-field
runtime: explicitly mark the source of the log is from qemu.log
This commit is contained in:
@@ -987,7 +987,7 @@ func (q *qemu) StopVM(ctx context.Context, waitOnly bool) error {
|
|||||||
if err == nil {
|
if err == nil {
|
||||||
scanner := bufio.NewScanner(f)
|
scanner := bufio.NewScanner(f)
|
||||||
for scanner.Scan() {
|
for scanner.Scan() {
|
||||||
q.Logger().Debug(scanner.Text())
|
q.Logger().WithField("file", q.qemuConfig.LogFile).Debug(scanner.Text())
|
||||||
}
|
}
|
||||||
if err := scanner.Err(); err != nil {
|
if err := scanner.Err(); err != nil {
|
||||||
q.Logger().WithError(err).Debug("read qemu log failed")
|
q.Logger().WithError(err).Debug("read qemu log failed")
|
||||||
|
Reference in New Issue
Block a user