Merge "Replace use of deprecated logging functions" into main
This commit is contained in:
commit
919723a5bd
1 changed files with 2 additions and 2 deletions
|
@ -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.");
|
||||
|
|
Loading…
Reference in a new issue