Skip to content

Commit 752c294

Browse files
authored
add env var for tokio console (#415)
* add env var for tokio console * lints * lint
1 parent e0243fc commit 752c294

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

crates/node/src/main.rs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,11 @@ fn main() {
1414
if std::env::var("RUST_LOG").is_err() {
1515
std::env::set_var("RUST_LOG", "info");
1616
}
17+
1718
// enable tokio-console subscriber
18-
console_subscriber::init();
19+
if std::env::var("ENABLE_CONSOLE_SUBSCRIBER").is_ok_and(|v| v == "1") {
20+
console_subscriber::init();
21+
}
1922

2023
reth_cli_util::sigsegv_handler::install();
2124

0 commit comments

Comments
 (0)