odsign: Explicitly initialize to use system logger
Bug: 201042799
Test: boot and observe logcat output
Change-Id: I5bbd8fe0b640eec0e77680327f242afc2bfa9d1c
diff --git a/ondevice-signing/odsign_main.cpp b/ondevice-signing/odsign_main.cpp
index 4a7baad..6ea20ea 100644
--- a/ondevice-signing/odsign_main.cpp
+++ b/ondevice-signing/odsign_main.cpp
@@ -518,7 +518,9 @@
return art::odrefresh::ExitCode::kCompilationRequired;
}
-int main(int /* argc */, char** /* argv */) {
+int main(int /* argc */, char** argv) {
+ android::base::InitLogging(argv, android::base::LogdLogger(android::base::SYSTEM));
+
auto errorScopeGuard = []() {
// In case we hit any error, remove the artifacts and tell Zygote not to use
// anything