From 07181c9948697519d06da159190699514177dd99 Mon Sep 17 00:00:00 2001 From: xionglei6 Date: Sat, 15 Jan 2022 11:34:55 +0800 Subject: [PATCH] updater: test Signed-off-by: xionglei6 --- services/main.cpp | 2 -- services/updater_binary/main.cpp | 2 -- 2 files changed, 4 deletions(-) diff --git a/services/main.cpp b/services/main.cpp index d6a5e6da..6f5d5fe9 100644 --- a/services/main.cpp +++ b/services/main.cpp @@ -13,7 +13,6 @@ * limitations under the License. */ #include "fs_manager/mount.h" -#include "fs_manager/fs_manager_log.h" #include "flashd/flashd.h" #include "log/log.h" #include "misc_info/misc_info.h" @@ -33,7 +32,6 @@ int main(int argc, char **argv) InitUpdaterLogger((mode == BOOT_FLASHD) ? "FLASHD" : "UPDATER", TMP_LOG, TMP_STAGE_LOG, TMP_ERROR_CODE_PATH); SetLogLevel(INFO); - FsManagerLogInit(LOG_TO_FILE, TMP_LOG.c_str()); LoadFstab(); STAGE(UPDATE_STAGE_OUT) << "Start " << ((mode == BOOT_FLASHD) ? "flashd" : "updater"); if (mode == BOOT_FLASHD) { diff --git a/services/updater_binary/main.cpp b/services/updater_binary/main.cpp index 10ccdd89..68aaaff5 100644 --- a/services/updater_binary/main.cpp +++ b/services/updater_binary/main.cpp @@ -18,7 +18,6 @@ #include #include #include "fs_manager/mount.h" -#include "fs_manager/fs_manager_log.h" #include "log.h" #include "updater/updater_const.h" #include "update_processor.h" @@ -33,7 +32,6 @@ int main(int argc, char **argv) LOG(ERROR) << "Invalid arguments."; return EXIT_INVALID_ARGS; } - FsManagerLogInit(LOG_TO_FILE, TMP_LOG.c_str()); bool retry = false; int pipeFd = static_cast(std::strtol(argv[1], nullptr, DECIMAL)); if (argc >= BINARY_MAX_ARGS && strcmp(argv[BINARY_SECOND_ARG], "retry") == 0) { -- Gitee