Merge "Replace use of deprecated logging functions" into main

This commit is contained in:
Jeffrey Vander Stoep 2024-02-07 17:57:53 +00:00 committed by Gerrit Code Review
commit 919723a5bd

View file

@ -23,11 +23,11 @@ use lights::LightsService;
const LOG_TAG: &str = "lights_service_example_rust";
use log::Level;
use log::LevelFilter;
fn main() {
let logger_success = logger::init(
logger::Config::default().with_tag_on_device(LOG_TAG).with_min_level(Level::Trace),
logger::Config::default().with_tag_on_device(LOG_TAG).with_max_level(LevelFilter::Trace),
);
if !logger_success {
panic!("{LOG_TAG}: Failed to start logger.");