There was an error while loading. Please reload this page.
NO_COLOR
HERMIT_LOG_LEVEL_FILTER
1 parent 8a321eb commit 2b2d313Copy full SHA for 2b2d313
1 file changed
src/logging.rs
@@ -101,13 +101,13 @@ impl fmt::Display for ColorLevel {
101
}
102
103
fn no_color() -> bool {
104
- option_env!("NO_COLOR").is_some_and(|val| !val.is_empty())
+ hermit_var!("NO_COLOR").is_some_and(|val| !val.is_empty())
105
106
107
pub unsafe fn init() {
108
log::set_logger(&KERNEL_LOGGER).expect("Can't initialize logger");
109
// Determines LevelFilter at compile time
110
- let log_level: Option<&'static str> = option_env!("HERMIT_LOG_LEVEL_FILTER");
+ let log_level = hermit_var!("HERMIT_LOG_LEVEL_FILTER");
111
let mut max_level = LevelFilter::Info;
112
113
if let Some(log_level) = log_level {
0 commit comments