1
0
Fork 0
mirror of https://github.com/kyverno/kyverno.git synced 2024-12-14 11:57:48 +00:00

fix: error log (#6429)

Signed-off-by: Charles-Edouard Brétéché <charles.edouard@nirmata.com>
Co-authored-by: shuting <shuting@nirmata.com>
This commit is contained in:
Charles-Edouard Brétéché 2023-03-01 10:14:50 +01:00 committed by GitHub
parent 4968e79175
commit b4d62e9a3b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -599,7 +599,7 @@ func replaceSubstituteVariables(document interface{}) interface{} {
var output interface{}
err = json.Unmarshal(rawDocument, &output)
if err != nil {
logging.Error(err, "failed to unmarshall JSON: %s", string(rawDocument))
logging.Error(err, "failed to unmarshall JSON", "document", string(rawDocument))
return document
}