diff options
Diffstat (limited to 'app/src/logger.rs')
-rw-r--r-- | app/src/logger.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/app/src/logger.rs b/app/src/logger.rs index 140eebe..5ef08f7 100644 --- a/app/src/logger.rs +++ b/app/src/logger.rs @@ -3,7 +3,7 @@ use rb::{Reader, RingBuffer, Writer}; use core::cell::UnsafeCell; use core::fmt::{self, Write}; use embedded_hal::{digital::v2::OutputPin, serial}; -use log::{Level, Metadata, Record}; +use log::{Metadata, Record}; use trinket_m0::{ gpio::{Pa6, Pa7, PfD}, sercom::{Sercom0Pad2, Sercom0Pad3, UART0}, @@ -83,7 +83,7 @@ where L: OutputPin + Send + Sync, { fn enabled(&self, metadata: &Metadata) -> bool { - metadata.level() <= Level::Info + metadata.level() <= log::max_level() } fn log(&self, record: &Record) { |