fix(logging): suppress mpv connect-request info log spam

This commit is contained in:
2026-02-20 20:45:33 -08:00
parent e1338113b5
commit 1c424b4a0b
6 changed files with 126 additions and 2 deletions

View File

@@ -0,0 +1,35 @@
# Agent: `codex-mpv-connect-log-20260221T043748Z-q7m1`
- alias: `codex-mpv-connect-log`
- mission: `Suppress repetitive MPV IPC connect-request INFO logs during startup`
- status: `done`
- branch: `main`
- started_at: `2026-02-21T04:37:48Z`
- heartbeat_minutes: `5`
## Current Work (newest first)
- [2026-02-21T04:41:15Z] handoff: switched connect-request logging from INFO to DEBUG in `src/core/services/mpv.ts`; added regression tests for info/debug behavior in `src/core/services/mpv.test.ts`; build + mpv suite passing; linked and completed `TASK-95`.
- [2026-02-21T04:40:32Z] test: `bun run build && node dist/core/services/mpv.test.js` (pass, 15/15).
- [2026-02-21T04:39:42Z] test: red confirmed before implementation (2 failing assertions for info/debug log-level expectations).
- [2026-02-21T04:38:20Z] progress: created backlog ticket `TASK-95` for this logger-path follow-up to `TASK-33`.
- [2026-02-21T04:37:48Z] intent: TDD-first fix for `[main:mpv] MPV IPC connect requested.` log spam; keep functional behavior unchanged.
- [2026-02-21T04:37:48Z] progress: read `docs/subagents/INDEX.md`, `docs/subagents/collaboration.md`; identified emitter in `src/core/services/mpv.ts`.
- [2026-02-21T04:37:48Z] progress: backlog check found prior related completed task `TASK-33`; scoping follow-up for current logger path.
## Files Touched
- `docs/subagents/agents/codex-mpv-connect-log-20260221T043748Z-q7m1.md`
- `docs/subagents/INDEX.md`
- `docs/subagents/collaboration.md`
- `backlog/tasks/task-95 - Suppress-MPV-IPC-connect-request-info-log-spam.md`
- `src/core/services/mpv.ts`
- `src/core/services/mpv.test.ts`
## Assumptions
- Noise source is `logger.info('MPV IPC connect requested.')` in `src/core/services/mpv.ts`.
- Desired behavior: suppress this line at non-debug log levels.
## Open Questions / Blockers
- none
## Next Step
- Await user verification in runtime logs; no further code changes planned.