From 43348615c0d476af3159f94b6e19548dff991d62 Mon Sep 17 00:00:00 2001 From: lan Date: Sat, 9 May 2026 19:59:02 +0800 Subject: [PATCH] chore(jpush): upgrade push request logging level and detail Change the log level from `Debug` to `Info` and include the full request body string to improve observability of outgoing push payloads. --- internal/pkg/jpush/client.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/pkg/jpush/client.go b/internal/pkg/jpush/client.go index d10b885..60b57e5 100644 --- a/internal/pkg/jpush/client.go +++ b/internal/pkg/jpush/client.go @@ -211,7 +211,7 @@ func (c *Client) parseResponse(resp *http.Response, body []byte) (*PushResponse, func (c *Client) Push(payload map[string]any) (*PushResponse, *RateLimitInfo, error) { body, _ := json.Marshal(payload) - c.logger.Debug("jpush push request", zap.Int("body_size", len(body))) + c.logger.Info("jpush push request", zap.String("body", string(body))) resp, respBody, rateLimit, err := c.doRequest("POST", PushAPIBaseURL+"/push", payload) if err != nil {