Add debugging logs 06/294306/1
authorHwankyu Jhun <h.jhun@samsung.com>
Fri, 16 Jun 2023 02:29:51 +0000 (02:29 +0000)
committerHwankyu Jhun <h.jhun@samsung.com>
Fri, 16 Jun 2023 02:29:51 +0000 (02:29 +0000)
This patch is for debugging.

Change-Id: I49cda06d89c00a4c4c645bd4bee55c4ec14edd4f
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
src/launchpad-process-pool/app_executor.cc
src/lib/launchpad-glib/util.cc
src/lib/launchpad/step_prepare_execution.cc

index cd58dde..cd5c0c7 100644 (file)
@@ -180,8 +180,10 @@ int AppExecutor::StepEnableExternalPackage() {
 }
 
 int AppExecutor::StepEnableTrustAnchor() {
+  _W("trust_anchor_launch ++ %s", app_info_->GetAppId().c_str());
   int ret = trust_anchor_launch(app_info_->GetPkgId().c_str(),
       app_info_->IsGlobal() ? GLOBAL_USER : getuid());
+  _W("trust_anchor_launch -- %s", app_info_->GetAppId().c_str());
   if (ret != TRUST_ANCHOR_ERROR_NONE &&
       ret != TRUST_ANCHOR_ERROR_NOT_INSTALLED) {
     _E("trust_anchor_launch() returns %d", ret);
index 1ba7970..3cad34b 100644 (file)
@@ -259,6 +259,7 @@ class ExternalPackage : public DBus {
   }
 
   void Enable() {
+    _I("BEGIN");
     int result = -1;
     int retry_count = 0;
     auto message = std::unique_ptr<DBusMessage, decltype(dbus_message_unref)*>(
@@ -278,6 +279,7 @@ class ExternalPackage : public DBus {
     _D("Result: %d", result);
     if (result < 0)
       THROW(-EIO);
+    _I("END");
   }
 
  private:
index 88d2fa0..ac8baa2 100644 (file)
@@ -86,8 +86,10 @@ int StepPrepareExecution::EnableExternalPackage(AppInfo* app_info) {
 }
 
 int StepPrepareExecution::TrustAnchorLaunch(AppInfo* app_info) {
+  _W("trust_anchor_launch ++ %s", app_info->GetAppId().c_str());
   int ret = trust_anchor_launch(app_info->GetPkgId().c_str(),
       app_info->IsGlobal() ? GLOBAL_USER : getuid());
+  _W("trust_anchor_launch -- %s", app_info->GetAppId().c_str());
   if (ret != TRUST_ANCHOR_ERROR_NONE &&
       ret != TRUST_ANCHOR_ERROR_NOT_INSTALLED) {
     _E("trust_anchor_launch() is failed. error: %d", ret);