From 29fb02be49b5c367b2ab02176b534410bc080980 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20Andr=C3=A9?= Date: Tue, 19 Dec 2023 18:29:40 +0100 Subject: [PATCH] Fix number of args passed to log.Info This fix a crash: ``` DPANIC sriovnetwork webhook/validate.go:446 odd number of arguments passed as key-value pairs for logging {"ignored key": "10ed"} ``` --- api/v1/helper.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/v1/helper.go b/api/v1/helper.go index c2725f7c2..ba2429caf 100644 --- a/api/v1/helper.go +++ b/api/v1/helper.go @@ -132,7 +132,7 @@ func IsVfSupportedModel(vendorID, deviceID string) bool { return true } } - log.Info("IsVfSupportedModel():", "Unsupported VF model:", "vendorId:", vendorID, "deviceId:", deviceID) + log.Info("IsVfSupportedModel(): found unsupported VF model", "vendorId:", vendorID, "deviceId:", deviceID) return false }