Skip to content

Commit

Permalink
remove debug logs
Browse files Browse the repository at this point in the history
Signed-off-by: Min Min <jamsman94@gmail.com>
  • Loading branch information
jamsman94 committed Jan 26, 2025
1 parent 559e188 commit ae6895c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -616,8 +616,6 @@ func RevertWorkflowTaskV4Job(c *gin.Context) {

args := new(revertWorkflowTaskV4JobReq)
data := getBody(c)
fmt.Println(">>>>>>>>>>>>>")
fmt.Println(data)
if err := json.Unmarshal([]byte(data), args); err != nil {
log.Errorf("CreateWorkflowTaskv4 json.Unmarshal err : %s", err)
ctx.RespErr = e.ErrInvalidParam.AddDesc(err.Error())
Expand Down
9 changes: 2 additions & 7 deletions pkg/tool/nacos/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ limitations under the License.
package nacos

import (
"fmt"
"net/url"
"strconv"
"strings"
Expand Down Expand Up @@ -157,10 +156,8 @@ func (c *Client) ListConfigs(namespaceID string) ([]*types.NacosConfig, error) {
"tenant": namespaceID,
"accessToken": c.token,
})
if resp, err := c.Client.Get(url, params, httpclient.SetResult(res)); err != nil {
if _, err := c.Client.Get(url, params, httpclient.SetResult(res)); err != nil {
return nil, errors.Wrap(err, "list nacos config failed")
} else {
fmt.Println(string(resp.Body()))
}
for _, conf := range res.PageItems {
resp = append(resp, &types.NacosConfig{
Expand Down Expand Up @@ -213,10 +210,8 @@ func (c *Client) GetConfigHistory(dataID, group, namespaceID string) ([]*types.N
})

res := &configHistoryResp{}
if resp, err := c.Client.Get(url, params, httpclient.SetResult(res)); err != nil {
if _, err := c.Client.Get(url, params, httpclient.SetResult(res)); err != nil {
return nil, errors.Wrap(err, "list nacos config history failed")
} else {
fmt.Println(string(resp.Body()))
}

return res.PageItems, nil
Expand Down

0 comments on commit ae6895c

Please sign in to comment.