From b4d62e9a3b35d99beb370381d8a28135da12d05d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Charles-Edouard=20Br=C3=A9t=C3=A9ch=C3=A9?= Date: Wed, 1 Mar 2023 10:14:50 +0100 Subject: [PATCH] fix: error log (#6429) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Charles-Edouard Brétéché Co-authored-by: shuting --- pkg/engine/variables/vars.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/engine/variables/vars.go b/pkg/engine/variables/vars.go index e1702cca35..b50862a762 100644 --- a/pkg/engine/variables/vars.go +++ b/pkg/engine/variables/vars.go @@ -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 }