commit | e8934d0991c98950e20351c333e3a0ebc110a975 | [log] [tgz] |
---|---|---|
author | Jeff Vander Stoep <jeffv@google.com> | Wed Jan 31 10:49:31 2024 +0100 |
committer | Jeff Vander Stoep <jeffv@google.com> | Wed Jan 31 10:49:31 2024 +0100 |
tree | ca1f1629bb148697f30dd281aceb24ad7ae89564 | |
parent | 5e7fcb4bbda34bdef17b5797efc0dc79f5af574c [diff] [blame] |
Replace use of deprecated logging functions This is needed to upgrade the android_logger crate from 0.12.0 to 0.13.3. with_max_level provides the same functionality as with_min_level. The renaming is admittedly confusing, but the new name is accurate and it makes sense that they deprecated and then removed the previously poorly named with_min_level. See crate documentation [1] and code [2]. [1]: https://docs.rs/android_logger/0.12.0/android_logger/struct.Config.html#method.with_min_level [2]: https://docs.rs/android_logger/0.12.0/src/android_logger/lib.rs.html#227 Bug: 322718401 Test: build and run CF with the change. Test: m aosp_cf_x86_64_phone Change-Id: I0ca9596433967be70e9d55acb6cfbf9322741bf8
diff --git a/uwb/aidl/default/src/service.rs b/uwb/aidl/default/src/service.rs index 7d5c073..e97b291 100644 --- a/uwb/aidl/default/src/service.rs +++ b/uwb/aidl/default/src/service.rs
@@ -6,7 +6,7 @@ use std::env; use std::panic; -use log::Level; +use log::LevelFilter; mod uwb; mod uwb_chip; @@ -14,7 +14,7 @@ fn main() -> anyhow::Result<()> { logger::init( logger::Config::default() - .with_min_level(Level::Debug) + .with_max_level(LevelFilter::Debug) .with_tag_on_device("android.hardware.uwb"), );