diff --git a/services/main.cpp b/services/main.cpp index d6a5e6da14635e7e8727dbab2ca1fe4cff467176..6f5d5fe974b1d11727ca786b969a31550dae10a7 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 10ccdd899738604242902dc7a7c63cfa0f67d747..68aaaff57286f0bd9c7d3deddb8eb4364aaa255c 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) {