Repository navigation
[log] Add debug logging to internal/sys/docker.go error paths - #16112
Conversation
Co-authored-by: Copilot <[email protected]>
There was a problem hiding this comment.
🟢 Approval recommended
The review evidence identifies no unresolved issues, and the change is limited to adding Docker-path diagnostics without altering runtime behavior.
No open issues 🎉
What changed in this PR
This pull request adds debug logging to Docker inspection and container-environment fallback paths in internal/sys/docker.go, improving diagnostics without changing runtime behavior.
Changes:
- Logs invalid container IDs and Docker inspection failures.
- Logs fallback behavior for stdin interactivity and log-directory mount checks.
- Reuses the existing
logDockerlogger.
| File | Description |
|---|---|
internal/sys/docker.go |
Adds debug logging to Docker inspection validation, command failures, and fallback branches. |
Review effort: Lite (auto)
🔒 mcpg Read-Only Stress — defaultSurface coverage: MCP tool calls + proxied CLI (REST) + GraphQL mutations
Overall: INCONCLUSIVE Details:
No reaction, star, issue, comment, branch, file, or PR was created in any part — no write leaked. Per the task's validation criteria, INCONCLUSIVE results (absent Part B tools, unauthenticated Part D/E) do not constitute a FAIL, but are reported distinctly since gateway enforcement for writes could not be independently confirmed on this run via either surface.
|
Adds 4 debug log calls (existing
logDockerlogger) tointernal/sys/docker.go:runDockerInspectdocker inspectfailure (container ID + format + error)CheckStdinInteractiveandCheckLogDirMountedfailure fallbacksPreviously these failures were silent in debug output. Log arguments have no side effects.
Validation:
go vet ./internal/sys,go test ./internal/sys,go buildall pass.