mirror of
https://github.com/kata-containers/kata-containers.git
synced 2025-08-24 18:52:08 +00:00
Merge pull request #9601 from cncal/fix_redundant_log
qemu: the error is logged only when it occurs
This commit is contained in:
commit
875e6e3815
@ -156,6 +156,8 @@ func (q *qemuArm64) enableProtection() error {
|
||||
|
||||
func (q *qemuArm64) appendProtectionDevice(devices []govmmQemu.Device, firmware, firmwareVolume string) ([]govmmQemu.Device, string, error) {
|
||||
err := q.enableProtection()
|
||||
hvLogger.WithField("arch", runtime.GOARCH).Warnf("%v", err)
|
||||
if err != nil {
|
||||
hvLogger.WithField("arch", runtime.GOARCH).Error(err)
|
||||
}
|
||||
return devices, firmware, err
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user