Commit 60fe5a8
feat(httputil): add debug logging to HTTP utility functions
Add a logger (httputil:httputil) and debug logging calls to the three
utility functions in internal/httputil/httputil.go:
- WriteJSONResponse: log status code, body size, and marshal errors
- ParseRateLimitResetHeader: log parsed reset time or parse failures
- IsTransientHTTPError: log when a transient error code is detected
These helpers are called widely across the server and proxy packages,
so debug logging here makes it easier to trace HTTP response behaviour
and rate-limit handling during troubleshooting.
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>1 parent 8f964e0 commit 60fe5a8
1 file changed
Lines changed: 16 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
| 11 | + | |
| 12 | + | |
11 | 13 | | |
12 | 14 | | |
| 15 | + | |
| 16 | + | |
13 | 17 | | |
14 | 18 | | |
15 | 19 | | |
| 20 | + | |
16 | 21 | | |
17 | 22 | | |
18 | 23 | | |
19 | 24 | | |
| 25 | + | |
20 | 26 | | |
21 | 27 | | |
| 28 | + | |
22 | 29 | | |
23 | 30 | | |
24 | 31 | | |
| |||
31 | 38 | | |
32 | 39 | | |
33 | 40 | | |
| 41 | + | |
34 | 42 | | |
35 | 43 | | |
36 | | - | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
37 | 47 | | |
38 | 48 | | |
39 | 49 | | |
40 | 50 | | |
41 | 51 | | |
42 | | - | |
| 52 | + | |
43 | 53 | | |
44 | 54 | | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
45 | 59 | | |
0 commit comments