forked from M-Labs/artiq
1
0
Fork 0

firmware: enable all log levels when creating UART logger.

The default is all off.
This commit is contained in:
whitequark 2018-05-28 16:49:13 +00:00
parent ad099edf63
commit 2b7d98eb04
1 changed files with 2 additions and 1 deletions

View File

@ -1,5 +1,5 @@
use core::fmt::Write;
use log::{Log, Metadata, Record, set_logger};
use log::{Log, LevelFilter, Metadata, Record, set_logger, set_max_level};
use clock;
use uart_console::Console;
@ -10,6 +10,7 @@ impl ConsoleLogger {
pub fn register() {
static LOGGER: ConsoleLogger = ConsoleLogger;
set_logger(&LOGGER).expect("global logger can only be initialized once")
set_max_level(LevelFilter::Trace);
}
}