We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
common_telemetry::init_default_ut_logging()
1 parent a9b42b4 commit 0e8411cCopy full SHA for 0e8411c
src/common/telemetry/src/logging.rs
@@ -45,7 +45,8 @@ pub fn init_default_ut_logging() {
45
let dir =
46
env::var("UNITTEST_LOG_DIR").unwrap_or_else(|_| "/tmp/__unittest_logs".to_string());
47
48
- *g = Some(init_global_logging("unittest", &dir, "DEBUG", false));
+ let level = env::var("UNITTEST_LOG_LEVEL").unwrap_or_else(|_| "DEBUG".to_string());
49
+ *g = Some(init_global_logging("unittest", &dir, &level, false));
50
51
info!("logs dir = {}", dir);
52
});
0 commit comments