Commit Graph

5 Commits (eebc9e97b7eda643af614730fb5dadf9922e7593)

Author SHA1 Message Date
David Li 7d2a54c416 chore: untrack .gsd/ runtime files from git index 2026-05-13 17:19:08 +08:00
David Li 3d0dd9b8b9 feat: migrate from eprintln! to tracing for structured logging
- Add tracing + tracing-subscriber dependencies
- Initialize tracing in main() with env-filter (RUST_LOG support)
- Replace all eprintln! diagnostic messages with tracing macros:
  - info! for lifecycle events (daemon startup, cache hits, scan progress)
  - warn! for non-fatal errors (skipped DBs, scan limits, connection errors)
  - error! for fatal errors (daemon startup failure)
  - debug! for cache hits (hidden behind RUST_LOG=debug)
- Add #[tracing::instrument] to key paths:
  - daemon::start_daemon — automatic startup timing
  - query::{sessions, history, search, new_messages} — per-query timing
  - crypto::full_decrypt — per-decrypt timing with page count
- Keep println! for user-facing CLI output (YAML/JSON, status messages)
- Keep eprintln! for test output and CLI progress indicators
2026-05-13 16:08:48 +08:00
David Li 59b2ebbff4 chore: auto-commit after complete-milestone
GSD-Unit: M001
2026-05-13 15:45:46 +08:00
David Li e145090e74 chore: auto-commit after complete-milestone
GSD-Unit: M001
2026-05-13 14:54:00 +08:00
David Li 57ad8f127f test: All changes compile on native and Windows targets; 32 unit tests…
- (none)

GSD context:
- Milestone: M001 - TCP Transport
- Slice: S02
- Task: T03 - All changes compile on native and Windows targets; 32 unit tests pass including new TCP transport tests

GSD-Task: S02/T03
2026-05-13 14:11:42 +08:00