Skip to content

Commit

Permalink
Fix number of args passed to log.Info
Browse files Browse the repository at this point in the history
This fix a crash:
```
DPANIC	sriovnetwork	webhook/validate.go:446	odd number of arguments passed as key-value pairs for logging	{"ignored key": "10ed"}
```
  • Loading branch information
mandre committed Dec 19, 2023
1 parent c0a2f9c commit 29fb02b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion api/v1/helper.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

Expand Down

0 comments on commit 29fb02b

Please sign in to comment.