add tokio-console
This commit is contained in:
parent
2d614365e7
commit
9ffb422877
|
@ -1011,6 +1011,43 @@ dependencies = [
|
|||
"windows-sys 0.52.0",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "console-api"
|
||||
version = "0.6.0"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "fd326812b3fd01da5bb1af7d340d0d555fd3d4b641e7f1dfcf5962a902952787"
|
||||
dependencies = [
|
||||
"futures-core",
|
||||
"prost",
|
||||
"prost-types",
|
||||
"tonic",
|
||||
"tracing-core",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "console-subscriber"
|
||||
version = "0.2.0"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "7481d4c57092cd1c19dd541b92bdce883de840df30aa5d03fd48a3935c01842e"
|
||||
dependencies = [
|
||||
"console-api",
|
||||
"crossbeam-channel",
|
||||
"crossbeam-utils",
|
||||
"futures-task",
|
||||
"hdrhistogram",
|
||||
"humantime",
|
||||
"prost-types",
|
||||
"serde",
|
||||
"serde_json",
|
||||
"thread_local",
|
||||
"tokio",
|
||||
"tokio-stream",
|
||||
"tonic",
|
||||
"tracing",
|
||||
"tracing-core",
|
||||
"tracing-subscriber",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "console_error_panic_hook"
|
||||
version = "0.1.7"
|
||||
|
@ -1934,6 +1971,19 @@ version = "0.14.3"
|
|||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "290f1a1d9242c78d09ce40a5e87e7554ee637af1351968159f4952f028f75604"
|
||||
|
||||
[[package]]
|
||||
name = "hdrhistogram"
|
||||
version = "7.5.4"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "765c9198f173dd59ce26ff9f95ef0aafd0a0fe01fb9d72841bc5066a4c06511d"
|
||||
dependencies = [
|
||||
"base64 0.21.7",
|
||||
"byteorder",
|
||||
"flate2",
|
||||
"nom",
|
||||
"num-traits 0.2.18",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "heck"
|
||||
version = "0.4.1"
|
||||
|
@ -2581,6 +2631,7 @@ dependencies = [
|
|||
"cap",
|
||||
"chrono",
|
||||
"clap 4.5.4",
|
||||
"console-subscriber",
|
||||
"const_env",
|
||||
"dashmap 5.5.3",
|
||||
"dotenv",
|
||||
|
@ -5918,6 +5969,7 @@ dependencies = [
|
|||
"signal-hook-registry",
|
||||
"socket2",
|
||||
"tokio-macros",
|
||||
"tracing",
|
||||
"windows-sys 0.48.0",
|
||||
]
|
||||
|
||||
|
|
|
@ -61,6 +61,7 @@ solana-lite-rpc-prioritization-fees = { workspace = true }
|
|||
solana-lite-rpc-address-lookup-tables = { workspace = true }
|
||||
solana-lite-rpc-accounts = { workspace = true }
|
||||
solana-lite-rpc-accounts-on-demand = { workspace = true }
|
||||
console-subscriber = "0.2.0"
|
||||
|
||||
[dev-dependencies]
|
||||
bench = { path = "../bench" }
|
||||
|
|
|
@ -416,7 +416,8 @@ fn setup_grpc_stream_debugging(blocks_notifier: &BlockStream) {
|
|||
|
||||
#[tokio::main()]
|
||||
pub async fn main() -> anyhow::Result<()> {
|
||||
setup_tracing_subscriber();
|
||||
// setup_tracing_subscriber();
|
||||
console_subscriber::init();
|
||||
|
||||
let config = Config::load().await?;
|
||||
|
||||
|
|
Loading…
Reference in New Issue