chore(jpush): upgrade push request logging level and detail
All checks were successful
Build Backend / build (push) Successful in 1m59s
Build Backend / build-docker (push) Successful in 1m20s

Change the log level from `Debug` to `Info` and include the full request body string to improve observability of outgoing push payloads.
This commit is contained in:
2026-05-09 19:59:02 +08:00
parent 0b7faf08c0
commit 43348615c0

View File

@@ -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 {