diff --git a/Cargo.lock b/Cargo.lock index c18cca0c4c02..9d6576820790 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -5265,6 +5265,7 @@ dependencies = [ "reth-optimism-node", "reth-optimism-rpc", "reth-provider", + "tracing", ] [[package]] diff --git a/crates/optimism/bin/Cargo.toml b/crates/optimism/bin/Cargo.toml index 08e13ae3800e..13e7b1aa6d4d 100644 --- a/crates/optimism/bin/Cargo.toml +++ b/crates/optimism/bin/Cargo.toml @@ -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" diff --git a/crates/optimism/bin/src/main.rs b/crates/optimism/bin/src/main.rs index 3115e73e1b12..cecd01ea8897 100644 --- a/crates/optimism/bin/src/main.rs +++ b/crates/optimism/bin/src/main.rs @@ -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();