Reduce log message verbosity - #341
Conversation
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: c5d3133d8b
ℹ️ About Codex in GitHub
Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".
| Level.FINER, | ||
| "sending {0} bytes to {1}: {2} {3}", | ||
| new Object[] {payload.bytes.length, url, res.statusCode(), res.body()}); |
There was a problem hiding this comment.
Keep failed HTTP responses visible
When the endpoint returns 400 or a 5xx response, this unconditional FINER record is filtered out by the usual INFO logging threshold even though handleResponse immediately drops a 400 payload or retries and eventually drops other non-200 payloads. Telemetry retains only the status counters, not the actionable response body, so server-side rejections become silent while transport failures still log at WARNING; use the reduced level only for successful responses and retain a visible level for non-200 responses.
Useful? React with 👍 / 👎.
No description provided.