init_log: set USB_LOGGER max level

This commit is contained in:
Astro 2020-09-24 23:11:05 +02:00
parent bfbf037006
commit b3e9a1b636
1 changed files with 2 additions and 3 deletions

View File

@ -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")]