From f4225758ff677b81ab5d25e366d9e0e38afb5369 Mon Sep 17 00:00:00 2001 From: Sangyoon Jang Date: Fri, 14 May 2021 18:59:56 +0900 Subject: [PATCH] Fix some error logs Make some more naturally. Change-Id: Id7772a9ed0f3479c5e5c6cc139131f4d08d992a9 Signed-off-by: Sangyoon Jang --- src/pkg_upgrade/src/ro2rw_upgrader.cc | 4 ++-- src/pkg_upgrade/src/ro_upgrader.cc | 2 +- src/pkg_upgrade/src/rw2ro_upgrader.cc | 4 ++-- src/pkg_upgrade/src/rw_upgrader.cc | 2 +- 4 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/pkg_upgrade/src/ro2rw_upgrader.cc b/src/pkg_upgrade/src/ro2rw_upgrader.cc index d7d44a9..7b0bcb0 100644 --- a/src/pkg_upgrade/src/ro2rw_upgrader.cc +++ b/src/pkg_upgrade/src/ro2rw_upgrader.cc @@ -33,14 +33,14 @@ bool Ro2RwUpgrader::Upgrade() { // Do force update to RW package always. if (old_pkg_.get() != nullptr) { if (!old_pkg_->Upgrade()) { - LOG(ERROR) << "old_pkg_->Upgrade() failed"; + LOG(ERROR) << "Upgrade operation of old RO package failed"; return false; } } if (new_pkg_.get() != nullptr) { if (!new_pkg_->Upgrade()) { - LOG(ERROR) << "new_pkg_->Upgrade() failed"; + LOG(ERROR) << "Upgrade operation of new RW package failed"; return false; } } diff --git a/src/pkg_upgrade/src/ro_upgrader.cc b/src/pkg_upgrade/src/ro_upgrader.cc index 3dadc68..daaae49 100644 --- a/src/pkg_upgrade/src/ro_upgrader.cc +++ b/src/pkg_upgrade/src/ro_upgrader.cc @@ -44,7 +44,7 @@ bool RoUpgrader::Upgrade() { } if (!new_pkg_->Upgrade()) { - LOG(ERROR) << "new_pkg_->Upgrade() failed"; + LOG(ERROR) << "Upgrade operation failed"; return false; } diff --git a/src/pkg_upgrade/src/rw2ro_upgrader.cc b/src/pkg_upgrade/src/rw2ro_upgrader.cc index 8fbae7a..97fc084 100644 --- a/src/pkg_upgrade/src/rw2ro_upgrader.cc +++ b/src/pkg_upgrade/src/rw2ro_upgrader.cc @@ -44,12 +44,12 @@ bool Rw2RoUpgrader::Upgrade() { } if (!old_pkg_->Upgrade()) { - LOG(ERROR) << "old_pkg_->Upgrade() failed"; + LOG(ERROR) << "Upgrade operation of old RW package failed"; return false; } if (!new_pkg_->Upgrade()) { - LOG(ERROR) << "new_pkg_->Upgrade() failed"; + LOG(ERROR) << "Upgrade operation of new RO package failed"; return false; } diff --git a/src/pkg_upgrade/src/rw_upgrader.cc b/src/pkg_upgrade/src/rw_upgrader.cc index 1fce8d0..c38425c 100644 --- a/src/pkg_upgrade/src/rw_upgrader.cc +++ b/src/pkg_upgrade/src/rw_upgrader.cc @@ -55,7 +55,7 @@ bool RwUpgrader::Upgrade() { } if (!new_pkg_->Upgrade()) { - LOG(ERROR) << "new_pkg_->Upgrade() failed"; + LOG(ERROR) << "Upgrade operation failed"; return false; } -- 2.7.4