init_log: set USB_LOGGER max level
This commit is contained in:
parent
bfbf037006
commit
b3e9a1b636
@ -1,11 +1,10 @@
|
||||
use crate::usb;
|
||||
|
||||
#[cfg(not(feature = "semihosting"))]
|
||||
static USB_LOGGER: usb::Logger = usb::Logger;
|
||||
|
||||
#[cfg(not(feature = "semihosting"))]
|
||||
pub fn init_log() {
|
||||
static USB_LOGGER: usb::Logger = usb::Logger;
|
||||
let _ = log::set_logger(&USB_LOGGER);
|
||||
log::set_max_level(log::LevelFilter::Info);
|
||||
}
|
||||
|
||||
#[cfg(feature = "semihosting")]
|
||||
|
Loading…
Reference in New Issue
Block a user