From 2afbfcab99b9b120b2b7c286d7b1f71347c2e117 Mon Sep 17 00:00:00 2001 From: Julio Montes Date: Mon, 29 Jun 2020 10:16:15 -0500 Subject: [PATCH] virtcontainers: print a warning when the device to append is not supported Print a warning message when the device to append to a QEMU VM is not supported. This change is just to improve debuggability. Signed-off-by: Julio Montes --- src/runtime/virtcontainers/qemu.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/runtime/virtcontainers/qemu.go b/src/runtime/virtcontainers/qemu.go index 2e60f6d2a..6d81da918 100644 --- a/src/runtime/virtcontainers/qemu.go +++ b/src/runtime/virtcontainers/qemu.go @@ -1761,7 +1761,7 @@ func (q *qemu) addDevice(devInfo interface{}, devType deviceType) error { case config.VFIODev: q.qemuConfig.Devices = q.arch.appendVFIODevice(q.qemuConfig.Devices, v) default: - break + q.Logger().WithField("dev-type", v).Warn("Could not append device: unsupported device type") } return err