Skip to content

Commit

Permalink
feat: support for tokio-console
Browse files Browse the repository at this point in the history
Adds --tokio-console boolean cli arg to neptune-core.

When this flag is present, logging is configured to emit tokio
tracing information and send it to localhost:6669 for processing
by tokio-console.

This requires building tokio with the `tokio_unstable` build flag.
This is specified in the new `.cargo/config.toml`

see: https://github.com/tokio-rs/console
  • Loading branch information
dan-da committed Nov 19, 2023
1 parent a0cd20e commit e108486
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .cargo/config.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# tokio_unstable compile flag is necessary for tokio-console usage.
# see: https://docs.rs/console-subscriber/latest/console_subscriber/
[build]
rustflags = ["--cfg", "tokio_unstable"]

0 comments on commit e108486

Please sign in to comment.