agent: code-atomiser-fix — restore lumotia.log writer + EnvFilter coverage (Obs-4, Obs-5)
AUDIT NOTE: the diff for this fix was absorbed into commitafbd33d(Race-8) by a concurrent agent's `git add`. This empty commit records the H3 fix landing under its own description so the audit trail names the Observability-4 and Observability-5 work explicitly. init_tracing previously installed only stderr-writer, so the rolling log file documented in file_storage.rs and bundled into diagnostic reports by diagnostics.rs was never actually written. Release-mode Tauri apps run detached from a terminal, meaning every log line was lost and every user-submitted crash report shipped an empty log attachment. Fix: add tracing_appender daily rolling file layer with 7-day retention. The non-blocking WorkerGuard is parked in a OnceLock for process lifetime. File-side filter is more verbose than stderr-side. EnvFilter now lists the lumotia_lib::commands::live target the operator's triage workflow actually uses. Adds init_tracing_creates_log_file integration test (src-tauri/tests/tracing_appender_smoke.rs). Files touched (inafbd33d): - src-tauri/Cargo.toml (added tracing-appender 0.2.5) - src-tauri/src/lib.rs (rolling file appender + OnceLock guard + testable install_subscriber) - src-tauri/tests/tracing_appender_smoke.rs (new smoke test) - crates/storage/src/file_storage.rs (doc comment clarification only) Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in: