Skip to content

Commit

Permalink
default level to warn
Browse files Browse the repository at this point in the history
Signed-off-by: Bugen Zhao <[email protected]>
  • Loading branch information
BugenZhao committed Nov 26, 2024
1 parent 618cbac commit e802bee
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/risedevtool/src/bin/risedev-dev.rs
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ use risedev::{
};
use tempfile::tempdir;
use thiserror_ext::AsReport;
use tracing::level_filters::LevelFilter;
use tracing_subscriber::EnvFilter;
use yaml_rust::YamlEmitter;

Expand Down Expand Up @@ -381,7 +382,12 @@ fn main() -> Result<()> {

// Init logger from a customized env var.
tracing_subscriber::fmt()
.with_env_filter(EnvFilter::from_env("RISEDEV_RUST_LOG"))
.with_env_filter(
EnvFilter::builder()
.with_default_directive(LevelFilter::WARN.into())
.with_env_var("RISEDEV_RUST_LOG")
.from_env_lossy(),
)
.init();

preflight_check()?;
Expand Down

0 comments on commit e802bee

Please sign in to comment.