Commit 3b2a946
Add debug logging to proxy/response_transform.go
Add 5 debug log calls to unwrapSingleObject and replaceNodesArray
functions in the proxy package, reusing the existing logTransform
logger (logger.New("proxy:response_transform")).
The new log calls trace:
- When a wrapped empty array is restored to top-level shape
- When a wrapped array matches the original and is restored
- When a search envelope (total_count) is skipped
- When a GraphQL response envelope (data field) is skipped
- When a single-element filtered array is unwrapped
- When replaceNodesArray replaces a nodes/edges key with DIFC-filtered items
These calls are gated by the DEBUG=proxy:* env var and help
developers trace how the GitHub API proxy transforms responses
during DIFC enforcement.
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>1 parent 20bcf27 commit 3b2a946
1 file changed
Lines changed: 6 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
59 | 59 | | |
60 | 60 | | |
61 | 61 | | |
| 62 | + | |
62 | 63 | | |
63 | 64 | | |
64 | 65 | | |
| 66 | + | |
65 | 67 | | |
66 | 68 | | |
67 | 69 | | |
| |||
75 | 77 | | |
76 | 78 | | |
77 | 79 | | |
| 80 | + | |
78 | 81 | | |
79 | 82 | | |
80 | 83 | | |
81 | 84 | | |
| 85 | + | |
82 | 86 | | |
83 | 87 | | |
84 | 88 | | |
85 | 89 | | |
| 90 | + | |
86 | 91 | | |
87 | 92 | | |
88 | 93 | | |
| |||
143 | 148 | | |
144 | 149 | | |
145 | 150 | | |
| 151 | + | |
146 | 152 | | |
147 | 153 | | |
148 | 154 | | |
| |||
0 commit comments