From c1abd5d9faba038bc8c59b0962f7c97bd9d59cab Mon Sep 17 00:00:00 2001 From: Hamish Moffatt <7577172+hmoffatt@users.noreply.github.com> Date: Tue, 24 Sep 2024 14:02:55 +0000 Subject: [PATCH] CLOUDNS: don't print full URL on error (#3124) (#3126) --- providers/cloudns/api.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/providers/cloudns/api.go b/providers/cloudns/api.go index f4b4a7e2e..cbaa6556a 100644 --- a/providers/cloudns/api.go +++ b/providers/cloudns/api.go @@ -265,7 +265,9 @@ func (c *cloudnsProvider) get(endpoint string, params requestParams) ([]byte, er err = json.Unmarshal(bodyString, &errResp) if err == nil { if errResp.Status == "Failed" { - return bodyString, fmt.Errorf("ClouDNS API error: %s URL:%s%s ", errResp.Description, req.Host, req.URL.RequestURI()) + // For debug only - req.URL.RequestURI() contains the authentication params: + // return bodyString, fmt.Errorf("ClouDNS API error: %s URL:%s%s ", errResp.Description, req.Host, req.URL.RequestURI()) + return bodyString, fmt.Errorf("ClouDNS API error: %s", errResp.Description) } }