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) (#6437)

Signed-off-by: Charles-Edouard Brétéché <charles.edouard@nirmata.com>
Co-authored-by: Charles-Edouard Brétéché <charles.edouard@nirmata.com>
Co-authored-by: shuting <shuting@nirmata.com>
This commit is contained in:
gcp-cherry-pick-bot[bot] 2023-03-01 09:59:38 +00:00 committed by GitHub
parent 25fee05742
commit 7d573b30d2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -595,7 +595,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
}