fix: add tracing features to op binary (#11395)

This commit is contained in:
Matthias Seitz
2024-10-01 21:34:07 +02:00
committed by GitHub
parent b9341a7b47
commit 9c9b1fdf84
3 changed files with 10 additions and 0 deletions

1
Cargo.lock generated
View File

@ -5265,6 +5265,7 @@ dependencies = [
"reth-optimism-node",
"reth-optimism-rpc",
"reth-provider",
"tracing",
]
[[package]]

View File

@ -17,6 +17,7 @@ reth-optimism-rpc.workspace = true
reth-optimism-node.workspace = true
clap = { workspace = true, features = ["derive", "env"] }
tracing.workspace = true
[lints]
workspace = true
@ -32,6 +33,12 @@ asm-keccak = ["reth-optimism-cli/asm-keccak", "reth-optimism-node/asm-keccak"]
optimism = ["reth-optimism-cli/optimism", "reth-optimism-node/optimism"]
min-error-logs = ["tracing/release_max_level_error"]
min-warn-logs = ["tracing/release_max_level_warn"]
min-info-logs = ["tracing/release_max_level_info"]
min-debug-logs = ["tracing/release_max_level_debug"]
min-trace-logs = ["tracing/release_max_level_trace"]
[[bin]]
name = "op-reth"
path = "src/main.rs"

View File

@ -10,6 +10,8 @@ use reth_optimism_node::{args::RollupArgs, node::OptimismAddOns, OptimismNode};
use reth_optimism_rpc::SequencerClient;
use reth_provider::providers::BlockchainProvider2;
use tracing as _;
#[global_allocator]
static ALLOC: reth_cli_util::allocator::Allocator = reth_cli_util::allocator::new_allocator();