Commit a1be537
feat: add debug logging for HTTP response status codes (#587)
## Summary
Adds debug logging for HTTP response status codes in the API client's
`do` method. When running with `--debug` enabled, all API responses will
now log their status code, status text, HTTP method, and URL.
This addresses an issue where 413 (Request Entity Too Large) errors
appeared as silent failures - the tool would report sending code
references successfully, but nothing would appear in LaunchDarkly
because the payload was rejected.
Example debug output:
```
DEBUG: 2026/01/14 12:00:00 ld.go:488: response status 413 Request Entity Too Large for PUT https://app.launchdarkly.com/api/v2/code-refs/repositories/...
```
Co-authored-by: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>1 parent e7120e8 commit a1be537
1 file changed
Lines changed: 2 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
485 | 485 | | |
486 | 486 | | |
487 | 487 | | |
| 488 | + | |
| 489 | + | |
488 | 490 | | |
489 | 491 | | |
490 | 492 | | |
| |||
0 commit comments