mirror of
https://github.com/kata-containers/kata-containers.git
synced 2025-08-25 11:13:15 +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) {
|
func (q *qemuArm64) appendProtectionDevice(devices []govmmQemu.Device, firmware, firmwareVolume string) ([]govmmQemu.Device, string, error) {
|
||||||
err := q.enableProtection()
|
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
|
return devices, firmware, err
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user