Merge "Replace use of deprecated logging functions" into main

This commit is contained in:
Jeffrey Vander Stoep 2024-02-06 16:09:30 +00:00 committed by Gerrit Code Review
commit 40b6a8f0c6
2 changed files with 4 additions and 4 deletions

View file

@ -92,8 +92,8 @@ fn inner_main() -> Result<(), HalServiceError> {
android_logger::init_once(
android_logger::Config::default()
.with_tag("keymint-hal-trusty")
.with_min_level(log::Level::Info)
.with_log_id(android_logger::LogId::System),
.with_max_level(log::LevelFilter::Info)
.with_log_buffer(android_logger::LogId::System),
);
// Redirect panic messages to logcat.
panic::set_hook(Box::new(|panic_info| {

View file

@ -101,8 +101,8 @@ fn inner_main() -> Result<(), HalServiceError> {
android_logger::init_once(
android_logger::Config::default()
.with_tag("secretkeeper-hal-trusty")
.with_min_level(log::Level::Info)
.with_log_id(android_logger::LogId::System),
.with_max_level(log::LevelFilter::Info)
.with_log_buffer(android_logger::LogId::System),
);
// Redirect panic messages to logcat.
panic::set_hook(Box::new(|panic_info| {