Browse Source

fixed dora run rust_log bug

tags/v0.3.11-rc1
starlitxiling 10 months ago
parent
commit
db3068a5b1
1 changed files with 2 additions and 1 deletions
  1. +2
    -1
      binaries/cli/src/lib.rs

+ 2
- 1
binaries/cli/src/lib.rs View File

@@ -312,7 +312,8 @@ fn run(args: Args) -> eyre::Result<()> {
.context("failed to set up tracing subscriber")?;
}
Command::Run { .. } => {
set_up_tracing_opts("run", Some("info"), None)
let log_level = std::env::var("RUST_LOG").ok().or(Some("info".to_string()));
set_up_tracing_opts("run", log_level.as_deref(), None)
.context("failed to set up tracing subscriber")?;
}
_ => {


Loading…
Cancel
Save