Add error logs on revoke_security step 13/35513/4
authorYoumin Ha <youmin.ha@samsung.com>
Tue, 17 Feb 2015 03:47:30 +0000 (12:47 +0900)
committerYoumin Ha <youmin.ha@samsung.com>
Mon, 23 Feb 2015 08:53:21 +0000 (17:53 +0900)
In addition, an error message is printed as an error, not a debug
message.

Change-Id: I1adb4fe8615a33652d3b00875adad52a6c9627d4
Signed-Off-By: Youmin Ha <youmin.ha@samsung.com>
src/common/step/step_revoke_security.cc

index 20a9f2b..6351fc6 100644 (file)
@@ -12,6 +12,7 @@ namespace revoke_security {
 Step::Status StepRevokeSecurity::process() {
   if (!UnregisterSecurityContextForApps(
       context_->pkgid(), context_->manifest_data())) {
+    LOG(ERROR) << "Failure on unregistering security context for app " << context_->pkgid();
     return Status::ERROR;
   }
   LOG(DEBUG) << "Security context uninstalled";
@@ -22,6 +23,7 @@ Step::Status StepRevokeSecurity::undo() {
   if (!RegisterSecurityContextForApps(
       context_->pkgid(), context_->GetRootApplicationPath(),
       context_->manifest_data())) {
+    LOG(ERROR) << "Failure on re-installing security context for app " << context_->pkgid();
     return Status::ERROR;
   }
   LOG(DEBUG) << "Security context installed";