Skip to content

Fix crate-name typo silently suppressing rendezvous-node's own logs - #1212

Open
pattayaguy-stack wants to merge 1 commit into
eigenwallet:masterfrom
pattayaguy-stack:fix-rendezvous-node-tracing-filter
Open

pattayaguy-stack wants to merge 1 commit into
eigenwallet:masterfrom
pattayaguy-stack:fix-rendezvous-node-tracing-filter

Conversation

@pattayaguy-stack

Copy link
Copy Markdown

What was the problem?

Running rendezvous-node (libp2p-rendezvous-node), we never saw any of main.rs's own tracing::info!/warn! lines (Peer registered, Discovery served, etc.) — not even at startup — even though the ASB was successfully registering against it.

How did you find/solve it?

tracing_util.rs's EnvFilter directive string is built as rendezvous_server=..., but the package is named rendezvous-node (crate target rendezvous_node). Since the directive name never matches the actual crate, EnvFilter silently drops every log call from the binary's own code, while the other directives in the same string (swap_p2p, libp2p, ...) keep matching normally — so there's no error, just silence from exactly the events you'd want to see to confirm the server is doing its job.

One-line fix: rendezvous_server= -> rendezvous_node=.

Why this approach?

It's a direct typo fix, no behavior change beyond un-suppressing the logs that were clearly intended to be there (they're referenced by name in the surrounding match arms in main.rs).

Verification

  • Confirmed the package name via Cargo.toml (name = "rendezvous-node").
  • Rebuilt (cargo build --release -p rendezvous-node) and cargo fmt -p rendezvous-node -- --check, both clean.
  • Deployed before/after on our own rendezvous node: zero "Peer registered"/"Discovery served" lines pre-fix despite successful registrations; both lines appeared immediately on the first restart post-fix.

Small aside: Claude Code assisted with drafting this description and running the verification commands above; the bug, the diagnosis and the before/after check are ours.

The EnvFilter directive built in init_tracing() reads "rendezvous_server=..."
but the package (and therefore the crate target tracing filters match
against) is named rendezvous-node / rendezvous_node. Because the directive
name never matches, EnvFilter silently drops every info/warn log the binary
itself emits in main.rs (PeerRegistered, DiscoverServed, etc.) while the
other correctly-named directives (swap_p2p, libp2p, ...) keep working, so
there is no visible error -- the binary just runs with its own events
invisible.

Verified on our own deployment: before this change, we saw zero "Peer
registered" / "Discovery served" lines despite the ASB successfully
registering against it. After rebuilding with the one-line fix, both lines
appeared on the very next restart.

(Testing/drafting assisted by Claude Code; the bug, fix and verification
above are our own.)

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant