Merge "Log to System rather than Main" am: e757d6351a
Original change: https://android-review.googlesource.com/c/platform/packages/modules/Virtualization/+/1996993
Change-Id: Iccbc213d5544da3360b9b8def64ebe6fdba20bb0
diff --git a/compos/verify/verify.rs b/compos/verify/verify.rs
index 55fe1bd..184b9ff 100644
--- a/compos/verify/verify.rs
+++ b/compos/verify/verify.rs
@@ -17,6 +17,7 @@
//! A tool to verify a CompOS signature. It starts a CompOS VM as part of this to retrieve the
//! public key. The tool is intended to be run by odsign during boot.
+use android_logger::LogId;
use anyhow::{bail, Context, Result};
use compos_aidl_interface::binder::ProcessState;
use compos_common::compos_client::{VmInstance, VmParameters};
@@ -39,7 +40,8 @@
android_logger::init_once(
android_logger::Config::default()
.with_tag("compos_verify")
- .with_min_level(log::Level::Info),
+ .with_min_level(log::Level::Info)
+ .with_log_id(LogId::System), // Needed to log successfully early in boot
);
// Redirect panic messages to logcat.