Skip to content

Commit

Permalink
chore: improve default ut logging
Browse files Browse the repository at this point in the history
  • Loading branch information
e1ijah1 committed Jan 11, 2023
1 parent a9b42b4 commit 1c80b02
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/common/telemetry/src/logging.rs
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,8 @@ pub fn init_default_ut_logging() {
let dir =
env::var("UNITTEST_LOG_DIR").unwrap_or_else(|_| "/tmp/__unittest_logs".to_string());

*g = Some(init_global_logging("unittest", &dir, "DEBUG", false));
let level = env::var("UNITTEST_LOG_LEVEL").unwrap_or_else(|_| "DEBUG".to_string());
*g = Some(init_global_logging("unittest", &dir, &level, false));

info!("logs dir = {}", dir);
});
Expand Down

0 comments on commit 1c80b02

Please sign in to comment.