Skip to content

Commit 1dbe9cc

Browse files
authored
fix: respect RUST_LOG environment variable for log level filtering (#8)
1 parent 9f34d1c commit 1dbe9cc

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/main.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,9 @@ use crate::types::ChainPusher;
3434

3535
#[tokio::main]
3636
async fn main() {
37-
tracing_subscriber::fmt().init();
37+
tracing_subscriber::fmt()
38+
.with_env_filter(tracing_subscriber::EnvFilter::from_default_env())
39+
.init();
3840
dotenvy::dotenv().ok();
3941
let args = Args::parse();
4042
let private_key = get_private_key(args.private_key);

0 commit comments

Comments
 (0)