Repository navigation
[log] Add debug logging to difc/path_labels.go - #16148
Conversation
Co-authored-by: Copilot <[email protected]>
There was a problem hiding this comment.
🟢 Approval recommended
No active review issues are reported, and the change is limited to contextual debug logging without altering behavior or exposing label values.
No open issues 🎉
What changed in this PR
Adds five debug log calls to internal/difc/path_labels.go to improve observability of path-label resolution and parsing without changing behavior or exposing label values.
Changes:
- Logs multi-collection resolution and path mismatches.
- Logs label counts and collection replacement metadata.
- Logs JSON unmarshal failures during path-label parsing.
| File | Description |
|---|---|
internal/difc/path_labels.go |
Adds five contextual debug log calls across path resolution, label conversion, collection rebuilding, and parsing. |
Review effort: Lite (auto)
🔒 mcpg Read-Only Stress — defaultSurface coverage: MCP tool calls + proxied CLI (REST) + GraphQL mutations
Overall: INCONCLUSIVE No write leaked in any part. Part B: the gh-aw
|
Adds 5 debug log calls to
internal/difc/path_labels.gousing the existinglogPathLabelslogger:resolveextractIndexFromPathpathEntryToResourcereplaceCollectionAtPathParsePathLabelsArguments are side-effect free and log no label values. Validated with
go vet,go test ./internal/difc, andgo build.