mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-09-14 05:36:12 +00:00
Merge pull request #96576 from PurelyApplied/do-not-log-tokenblob-on-error
Avoid logging JSON blob on error.
This commit is contained in:
@@ -112,7 +112,7 @@ func ProvideContainerRegistry(client *http.Client, image string) credentialconfi
|
|||||||
|
|
||||||
var parsedBlob TokenBlob
|
var parsedBlob TokenBlob
|
||||||
if err := json.Unmarshal([]byte(tokenJSONBlob), &parsedBlob); err != nil {
|
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
|
return cfg
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user