Avoid logging JSON blob on error.

This commit is contained in:
Patrick Rhomberg
2021-04-23 20:15:06 +00:00
parent 2115852220
commit 698798c06b

View File

@@ -112,7 +112,7 @@ func ProvideContainerRegistry(client *http.Client, image string) credentialconfi
var parsedBlob TokenBlob
if err := json.Unmarshal([]byte(tokenJSONBlob), &parsedBlob); err != nil {
klog.Errorf("while parsing json blob %s: %v", tokenJSONBlob, err)
klog.Errorf("error while parsing json blob of length %d", len(tokenJSONBlob))
return cfg
}