summaryrefslogtreecommitdiff
path: root/recovery_main.cpp
diff options
context:
space:
mode:
authorxunchang <xunchang@google.com>2019-04-15 15:24:24 -0700
committerxunchang <xunchang@google.com>2019-04-15 23:18:13 -0700
commit2239b9e4dd08e307ad74dc44b597fd53d2d17de8 (patch)
tree421f43033eb1998211e49134fd9e1cac4435efb6 /recovery_main.cpp
parent9fc764f1f0e6c4c581a5236d7558d97a1f90b38e (diff)
Move load & restore logs to logging.cpp
We perform these steps to perserve the recovery logs when wiping /cache partition. Move them to logging.cpp to keep the actually EraseVolume function concise. Bug: 130166585 Test: unit tests pass, mount cache and check last log after cache Change-Id: Idc52833817a446f3a0148a3dd2112f911c9ef48d
Diffstat (limited to 'recovery_main.cpp')
-rw-r--r--recovery_main.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/recovery_main.cpp b/recovery_main.cpp
index 8f3f2a78..5f3ab76d 100644
--- a/recovery_main.cpp
+++ b/recovery_main.cpp
@@ -435,7 +435,7 @@ int main(int argc, char** argv) {
ui->Print("Warning: No file_contexts\n");
}
- SetWipeDataSehandle(sehandle);
+ SetLoggingSehandle(sehandle);
std::atomic<Device::BuiltinAction> action;
std::thread listener_thread(ListenRecoverySocket, ui, std::ref(action));