From b3e9a1b6360ff4764a3455558df0acd19913abda Mon Sep 17 00:00:00 2001 From: Astro Date: Thu, 24 Sep 2020 23:11:05 +0200 Subject: [PATCH] init_log: set USB_LOGGER max level --- src/init_log.rs | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/init_log.rs b/src/init_log.rs index 1ac9fd7..bc3887b 100644 --- a/src/init_log.rs +++ b/src/init_log.rs @@ -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")]