Skip to content

Commit 0398e01

Browse files
committed
Update lib.rs
1 parent 294eac5 commit 0398e01

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

uefi-services/src/lib.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -110,6 +110,9 @@ unsafe fn init_logger(st: &mut SystemTable<Boot>) {
110110

111111
// Set the logger.
112112
log::set_logger(logger).unwrap(); // Can only fail if already initialized.
113+
114+
// Set logger max level to level specified by log features
115+
log::set_max_level(log::STATIC_MAX_LEVEL);
113116
}
114117

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

0 commit comments

Comments
 (0)