Commit e06554f
authored
[log] Add debug logging to LoadGatewayTLS (#5971)
## Summary
Enhances `internal/server/gateway_tls.go` with additional debug logging
calls in `LoadGatewayTLS` to improve observability during TLS
configuration setup.
## Changes
File modified: `internal/server/gateway_tls.go`
Log calls added/improved:
1. (improved) Log leaf certificate count after key pair loaded
2. (new) Log CA certificate pool built successfully (mTLS path)
3. (new) Log one-way TLS configured (no client certs required)
4. (new) Log final TLS configuration ready with mtls status
## Validation
- `go build ./...` passes
- `go vet ./...` passes
## Logger
Reuses existing `var logGatewayTLS = logger.New("server:tls")` — no new
logger declaration needed.
> Generated by [Go Logger
Enhancement](https://github.com/github/gh-aw-mcpg/actions/runs/26066891283/agentic_workflow)
· ● 9.9M ·
[◷](https://github.com/search?q=repo%3Agithub%2Fgh-aw-mcpg+%22gh-aw-workflow-id%3A+go-logger%22&type=pullrequests)
<!-- gh-aw-agentic-workflow: Go Logger Enhancement, engine: copilot,
version: 1.0.40, model: claude-sonnet-4.6, id: 26066891283, workflow_id:
go-logger, run:
https://github.com/github/gh-aw-mcpg/actions/runs/26066891283 -->
<!-- gh-aw-workflow-id: go-logger -->1 file changed
Lines changed: 5 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
31 | 31 | | |
32 | 32 | | |
33 | 33 | | |
34 | | - | |
| 34 | + | |
35 | 35 | | |
36 | 36 | | |
37 | 37 | | |
| |||
48 | 48 | | |
49 | 49 | | |
50 | 50 | | |
| 51 | + | |
51 | 52 | | |
52 | 53 | | |
53 | 54 | | |
54 | 55 | | |
55 | 56 | | |
| 57 | + | |
| 58 | + | |
56 | 59 | | |
57 | 60 | | |
| 61 | + | |
58 | 62 | | |
59 | 63 | | |
0 commit comments