update_verifier now logs to kmesg

Set up update_verifier logging to be written to kmsg; because we may
not have Logd during boot time.

Bug: 64713327
Test: logs show up in `adb shell dmesg`
Change-Id: If02f460bda121cd3e9062bc0e08107c6da66492c
This commit is contained in:
Tianjie Xu 2017-08-15 11:45:49 -07:00
parent 11214d9062
commit a009ce05e2

View file

@ -16,8 +16,14 @@
// See the comments in update_verifier.cpp. // See the comments in update_verifier.cpp.
#include <android-base/logging.h>
#include "update_verifier/update_verifier.h" #include "update_verifier/update_verifier.h"
int main(int argc, char** argv) { int main(int argc, char** argv) {
// Set up update_verifier logging to be written to kmsg; because we may not have Logd during
// boot time.
android::base::InitLogging(argv, &android::base::KernelLogger);
return update_verifier(argc, argv); return update_verifier(argc, argv);
} }