Disable kmsg when microdroid isn't fully debuggable
The default behaviour is to rate limit logs from user space to kmsg so
override that to disable the logging instead. This prevents logs from
the microdroid system components from showing in the kernel logs while
the kernel log is still output on the uart.
Make it so microdroid_managed doesn't crash if it can't use /dev/kmsg.
Bug: 219743539
Test: MicrodroidTests
Change-Id: I68c8335176b088f2a65b6effa77d1cfb9adf1939
diff --git a/microdroid_manager/src/main.rs b/microdroid_manager/src/main.rs
index 005baf6..1b3aa7f 100644
--- a/microdroid_manager/src/main.rs
+++ b/microdroid_manager/src/main.rs
@@ -121,7 +121,7 @@
}
fn try_main() -> Result<()> {
- kernlog::init()?;
+ let _ = kernlog::init();
info!("started.");
let service = get_vms_rpc_binder().context("cannot connect to VirtualMachineService")?;