summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author Alan Stokes <alanstokes@google.com> 2023-07-04 16:48:54 +0000
committer Treehugger Robot <android-test-infra-autosubmit@system.gserviceaccount.com> 2023-07-05 11:21:23 +0000
commit0db9fa704bbef585de6efc4e233356840ebf5faf (patch)
tree6d0ea3cb2939eeb41c1aa69935a504d496271212
parente29176b05e59e3feb479e0c092136420695e49ae (diff)
Revert "Use default logger in CompOS mode"
This reverts commit 5f4d33f1b825b2de08bbbf402c9f4bfc763b5de2. Reason for revert: b/270566364 - no longer needed, we have a more general solution now. Change-Id: I667f9c050dddd69115801addc7fc1b286c6668fc
-rw-r--r--odrefresh/odrefresh_main.cc8
1 files changed, 3 insertions, 5 deletions
diff --git a/odrefresh/odrefresh_main.cc b/odrefresh/odrefresh_main.cc
index 07ea060eec..a2a5ec23e4 100644
--- a/odrefresh/odrefresh_main.cc
+++ b/odrefresh/odrefresh_main.cc
@@ -261,14 +261,12 @@ int main(int argc, char** argv) {
// by others and prevents system_server from loading generated artifacts.
umask(S_IWGRP | S_IWOTH);
+ // Explicitly initialize logging (b/201042799).
+ android::base::InitLogging(argv, android::base::LogdLogger(android::base::SYSTEM));
+
OdrConfig config(argv[0]);
int n = InitializeConfig(argc, argv, &config);
- // Explicitly initialize logging (b/201042799).
- // But not in CompOS mode - logd doesn't exist in Microdroid (b/265153235).
- if (!config.GetCompilationOsMode()) {
- android::base::InitLogging(argv, android::base::LogdLogger(android::base::SYSTEM));
- }
art::MemMap::Init(); // Needed by DexFileLoader.
argv += n;