VS: Log to system log
We run VS at early boot (via compos_verify), and we want to see its
logs in case something interesting happens. That seems to require
using the sytem log.
Bug: 215419883
Test: Run staged-apex-compile, reboot, see logs
Change-Id: I24c55196b5403df3057c690691f0f585c4a8f2fc
diff --git a/virtualizationservice/src/main.rs b/virtualizationservice/src/main.rs
index 43e46a3..7bfb531 100644
--- a/virtualizationservice/src/main.rs
+++ b/virtualizationservice/src/main.rs
@@ -40,7 +40,10 @@
fn main() {
android_logger::init_once(
- android_logger::Config::default().with_tag(LOG_TAG).with_min_level(Level::Info),
+ android_logger::Config::default()
+ .with_tag(LOG_TAG)
+ .with_min_level(Level::Info)
+ .with_log_id(android_logger::LogId::System),
);
clear_temporary_files().expect("Failed to delete old temporary files");