Merge pull request #96576 from PurelyApplied/do-not-log-tokenblob-on-error

Avoid logging JSON blob on error.
This commit is contained in:
Kubernetes Prow Robot
2021-04-26 12:53:16 -07:00
committed by GitHub

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
}