From fb018985c204ef64e80e9d977e54ec1c825c1037 Mon Sep 17 00:00:00 2001 From: wangchuxiao Date: Mon, 8 Aug 2022 16:46:43 +0800 Subject: [PATCH] getui debug --- internal/push/getui/push.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/internal/push/getui/push.go b/internal/push/getui/push.go index b91b51fc2..45b3ac9e2 100644 --- a/internal/push/getui/push.go +++ b/internal/push/getui/push.go @@ -178,7 +178,7 @@ func (g *Getui) request(url string, content interface{}, token string, returnStr return err } client := &http.Client{} - log.Debug(operationID, utils.GetSelfFuncName(), "json:", string(con)) + log.Debug(operationID, utils.GetSelfFuncName(), "json:", string(con), "token:", token) req, err := http.NewRequest("POST", config.Config.Push.Getui.PushUrl+url, bytes.NewBuffer(con)) if err != nil { return err @@ -196,7 +196,7 @@ func (g *Getui) request(url string, content interface{}, token string, returnStr if err != nil { return err } - log.NewInfo(operationID, "getui", utils.GetSelfFuncName(), "resp, ", string(result)) + log.NewDebug(operationID, "getui", utils.GetSelfFuncName(), "resp, ", string(result)) commonResp := GetuiCommonResp{} commonResp.Data = returnStruct if err := json.Unmarshal(result, &commonResp); err != nil {