Skip to content
This repository was archived by the owner on May 13, 2026. It is now read-only.

fix(daemon): point users at observability.jsonl from server.log banner + daemon start - #848

Merged
shiba4life merged 2 commits into
mainfrom
fix/server-log-points-at-observability-jsonl
May 5, 2026
Merged

fix(daemon): point users at observability.jsonl from server.log banner + daemon start#848
shiba4life merged 2 commits into
mainfrom
fix/server-log-points-at-observability-jsonl

Conversation

@shiba4life

Copy link
Copy Markdown
Collaborator

Summary

  • Boot banner in folddb_server now includes a Logs: <path> line so tail ~/.folddb/server.log immediately points users at the structured-tracing file (observability.jsonl) instead of dead-ending on a banner-only file.
  • folddb daemon start success output (both "already running" and "just started" branches) prints the same Logs: path so the CLI surfaces it without requiring users to ever open server.log.
  • Adds utils::paths::observability_log_path() that mirrors upstream observability::init::default_node_log_path (honors OBS_FILE_PATH, falls back to $HOME/.folddb/observability.jsonl).

Considered and rejected: collapsing server.log and observability.jsonl into one file. They serve different purposes — server.log is stdio/crash capture (truncated per restart), observability.jsonl is structured tracing (append-only across restarts) — and merging them creates byte-interleaving risk between two writers and makes JSON parsing fragile. The discoverability fix is the actual bug.

Test plan

  • cargo check --bin folddb_server --bin folddb clean
  • cargo test --bin folddb_server --bin folddb green
  • cargo test --lib server::startup::tests green (pre-existing parallel-run poison flake on the full lib suite reproduces on main with this branch stashed)
  • Run folddb daemon start and confirm the success line includes Logs: ~/.folddb/observability.jsonl
  • tail -n 5 ~/.folddb/server.log after a fresh start shows the Logs: pointer line in the banner

🤖 Generated with Claude Code

…longer a dead end

Users tail ~/.folddb/server.log expecting daemon activity but only see the
boot banner — the real structured tracing lives in observability.jsonl,
which is undocumented and unsurfaced. Add a Logs: line to the boot banner
and to `folddb daemon start`'s success output so the path is impossible
to miss without conflating two streams (stdio/crash capture vs structured
tracing) that should stay separate.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@shiba4life
shiba4life enabled auto-merge May 5, 2026 06:22
cargo fmt --all -- --check rejected the inline three-call chain.
Wrap to four lines so Rust Fast (PR) can pass.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@shiba4life
shiba4life added this pull request to the merge queue May 5, 2026
Merged via the queue into main with commit fb43161 May 5, 2026
11 checks passed
@shiba4life
shiba4life deleted the fix/server-log-points-at-observability-jsonl branch May 5, 2026 06:44
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant