diff options
| author | Yifan Hong <elsk@google.com> | 2020-04-08 23:45:47 +0000 |
|---|---|---|
| committer | Android (Google) Code Review <android-gerrit@google.com> | 2020-04-08 23:45:47 +0000 |
| commit | b0981c83d264312902030af103ffeb73ac7316a0 (patch) | |
| tree | 2709c0d960f486f1c80cf52db48d1a24dc430447 /sideload_main.cc | |
| parent | cba9c46108cc230c20ecdebfd7d48b597a4e3faf (diff) | |
| parent | a73445f65eb8b639a279ceb58a067b916f59a1e9 (diff) | |
Merge changes from topic "sideload_logging" into rvc-dev
* changes:
sideload: fix duplicated logging
Revert "Setup android-base logging in sideload."
Diffstat (limited to 'sideload_main.cc')
| -rw-r--r-- | sideload_main.cc | 17 |
1 files changed, 2 insertions, 15 deletions
diff --git a/sideload_main.cc b/sideload_main.cc index 29d6f2ce..27967cda 100644 --- a/sideload_main.cc +++ b/sideload_main.cc @@ -20,7 +20,6 @@ #include <vector> #include <base/command_line.h> -#include <base/logging.h> #include <base/strings/string_split.h> #include <base/strings/stringprintf.h> #include <brillo/asynchronous_signal_handler.h> @@ -36,7 +35,7 @@ #include "update_engine/common/subprocess.h" #include "update_engine/common/terminator.h" #include "update_engine/common/utils.h" -#include "update_engine/sideload_logging_android.h" +#include "update_engine/logging.h" #include "update_engine/update_attempter_android.h" using std::string; @@ -47,17 +46,6 @@ using update_engine::UpdateStatus; namespace chromeos_update_engine { namespace { -void SetupLogging() { - string log_file; - logging::LoggingSettings log_settings; - log_settings.lock_log = logging::DONT_LOCK_LOG_FILE; - log_settings.delete_old = logging::APPEND_TO_OLD_LOG_FILE; - log_settings.log_file = nullptr; - log_settings.logging_dest = logging::LOG_TO_SYSTEM_DEBUG_LOG; - - logging::InitLogging(log_settings); -} - class SideloadDaemonState : public DaemonStateInterface, public ServiceObserverInterface { public: @@ -196,8 +184,7 @@ int main(int argc, char** argv) { DEFINE_int64(status_fd, -1, "A file descriptor to notify the update status."); chromeos_update_engine::Terminator::Init(); - chromeos_update_engine::SetupLogging(); - chromeos_update_engine::SetupAndroidLogging(argv); + chromeos_update_engine::SetupLogging(true /* stderr */, false /* file */); brillo::FlagHelper::Init(argc, argv, "Update Engine Sideload"); LOG(INFO) << "Update Engine Sideloading starting"; |
