Commit a2c5a12
Add debug logging to cmd/proxy.go
Adds 5 new logProxyCmd debug log calls to improve troubleshooting of
the proxy subcommand:
- Log proxy server creation parameters (guard path, policy presence,
DIFC mode, trusted bot/user counts) before proxy.New
- Log successful proxy server creation
- Log HTTP server creation with TLS state
- Log when TLS configuration is applied to the HTTP server
- Log TLS trust environment setup (CA cert path and env vars being set)
- Log successful TLS trust environment configuration
These debug logs are controlled by DEBUG=cmd:proxy and write to both
stderr (colorized, with time diffs) and the gateway log file.
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>1 parent 18b19a6 commit a2c5a12
1 file changed
Lines changed: 7 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
203 | 203 | | |
204 | 204 | | |
205 | 205 | | |
| 206 | + | |
| 207 | + | |
206 | 208 | | |
207 | 209 | | |
208 | 210 | | |
| |||
215 | 217 | | |
216 | 218 | | |
217 | 219 | | |
| 220 | + | |
218 | 221 | | |
219 | 222 | | |
220 | 223 | | |
| |||
235 | 238 | | |
236 | 239 | | |
237 | 240 | | |
| 241 | + | |
238 | 242 | | |
239 | 243 | | |
240 | 244 | | |
241 | 245 | | |
242 | 246 | | |
| 247 | + | |
243 | 248 | | |
244 | 249 | | |
245 | 250 | | |
| |||
318 | 323 | | |
319 | 324 | | |
320 | 325 | | |
| 326 | + | |
321 | 327 | | |
322 | 328 | | |
323 | 329 | | |
324 | 330 | | |
325 | 331 | | |
| 332 | + | |
326 | 333 | | |
327 | 334 | | |
0 commit comments