Skip to content

Commit 56e9f86

Browse files
Change logger max level to be set by feature (#429)
1 parent 805e744 commit 56e9f86

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

uefi-services/src/lib.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -111,8 +111,8 @@ unsafe fn init_logger(st: &mut SystemTable<Boot>) {
111111
// Set the logger.
112112
log::set_logger(logger).unwrap(); // Can only fail if already initialized.
113113

114-
// Log everything.
115-
log::set_max_level(log::LevelFilter::Info);
114+
// Set logger max level to level specified by log features
115+
log::set_max_level(log::STATIC_MAX_LEVEL);
116116
}
117117

118118
/// Notify the utility library that boot services are not safe to call anymore

0 commit comments

Comments
 (0)