We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 14c7801 commit 624e7b6Copy full SHA for 624e7b6
ethereum_prover/src/main.rs
@@ -10,10 +10,16 @@ use tracing_subscriber::EnvFilter;
10
11
#[tokio::main]
12
async fn main() -> anyhow::Result<()> {
13
+ // Enforce default log level.
14
+ if std::env::var("RUST_LOG").is_err() {
15
+ unsafe {
16
+ std::env::set_var("RUST_LOG", "zksync=INFO,ethereum_prover=INFO");
17
+ }
18
19
+
20
tracing_subscriber::fmt()
21
.with_env_filter(
22
EnvFilter::builder()
- .with_default_directive("zksync=INFO,ethereum_prover=INFO".parse().unwrap())
23
.from_env()
24
.context("failed to load log filter from env")?,
25
)
0 commit comments