commit | 2f7127e71073e920f3158f461346a367cc1fbb64 | [log] [tgz] |
---|---|---|
author | Jeff Vander Stoep <jeffv@google.com> | Thu Feb 15 07:44:33 2024 +0100 |
committer | Jeff Vander Stoep <jeffv@google.com> | Thu Feb 15 07:44:33 2024 +0100 |
tree | 58f06f5eb12cd2222b9187f90416b98d77495ef7 | |
parent | 00282f23377a1c62c69f4125ff0cb8b08727ea24 [diff] |
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: I07e87567def31075d1be98a910babc35e424e534
diff --git a/service_vm/test_apk/src/native/main.rs b/service_vm/test_apk/src/native/main.rs index 26b8062..d5d599d 100644 --- a/service_vm/test_apk/src/native/main.rs +++ b/service_vm/test_apk/src/native/main.rs
@@ -45,7 +45,7 @@ android_logger::init_once( android_logger::Config::default() .with_tag("service_vm_client") - .with_min_level(log::Level::Debug), + .with_max_level(log::LevelFilter::Debug), ); // Redirect panic messages to logcat. panic::set_hook(Box::new(|panic_info| {