Repository navigation
[log] Add debug logging to middleware URL domain audit - #16880
Conversation
Co-authored-by: Copilot <[email protected]>
There was a problem hiding this comment.
🟢 Approval recommended
No active issues were identified, and the change is narrowly scoped to opt-in control-flow logging while preserving existing URL auditing and avoiding sensitive value logging.
No open issues 🎉
What changed in this PR
Adds opt-in debug logging to the middleware URL-domain audit path while preserving existing auditing behavior and avoiding payload or domain-value logging.
Changes:
- Adds a
middleware:url_auditlogger vialogger.ForFile(). - Logs disabled auditing, missing response data, empty domain results, and domain-recording counts.
- Preserves existing URL extraction and persistence behavior.
| File | Description |
|---|---|
| internal/middleware/url_audit.go | Adds debug logging around URL-domain audit control flow and domain recording. |
Review effort: Lite (adaptive)
🔒 mcpg Read-Only Stress — defaultSurface coverage: MCP tool calls + proxied CLI (REST) + GraphQL mutations
Overall: INCONCLUSIVE ( No write of any kind leaked on any surface (reads all succeeded; no reaction/star/issue/comment/branch/file/PR was created). Full detail in /tmp/gh-aw/agent/readonly-stress-44637723426.txt.
|
Adds debug logging to
internal/middleware/url_audit.go(middleware:url_audit, vialogger.ForFile()).Validation:
go vet ./internal/middleware,go test ./internal/middleware, andgo buildall pass.