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.
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user