Skip to content

Commit dbdd288

Browse files
committed
fix logging to remove sensitive info
1 parent 88b89ed commit dbdd288

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

httputils.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -345,7 +345,7 @@ func UpdateCapellaDbCredUser(baseUrl string, cloudAPIclustersEndPoint string, ac
345345
apiPathSlices := strings.Split(cloudAPIclustersEndPoint, "/")
346346
ep := c.baseURL + "/organizations/" + apiPathSlices[2] + "/apikeys/" + username + "/rotate"
347347
data := fmt.Sprintf("{\"secret\":\"%s\"}", password)
348-
c.logger.Info(fmt.Sprintf("%s %s %s", http.MethodPost, ep, data))
348+
c.logger.Info(fmt.Sprintf("%s %s", http.MethodPost, ep))
349349
resp, err := c.sendRequest(http.MethodPost, ep, data)
350350
if resp != nil && resp.StatusCode != http.StatusOK {
351351
return "", fmt.Errorf("failed during capella secret key rotate, response = %v, ep = %s",

0 commit comments

Comments
 (0)