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