Print the request type when trying direct access 18/302818/2
authorIlho Kim <ilho159.kim@samsung.com>
Thu, 14 Dec 2023 07:22:52 +0000 (16:22 +0900)
committerIlho Kim <ilho159.kim@samsung.com>
Thu, 14 Dec 2023 08:12:33 +0000 (17:12 +0900)
Change-Id: Ifbd5223c86c3a6924356d808e480f2485d039ce7
Signed-off-by: Ilho Kim <ilho159.kim@samsung.com>
src/client/pkginfo_client.cc

index 1ddf911..a81ea7b 100644 (file)
@@ -88,7 +88,8 @@ bool PkgInfoClient::SendRequest() {
   }
 
   if (!check_server.IsReady()) {
-    LOG(WARNING) << "Server is not ready, try to direct access";
+    LOG(WARNING) << "Server is not ready, try to direct access"
+        ", Request type: " << pkgmgr_common::ReqTypeToString(req_type_);
     is_offline_ = true;
     return RequestHandlerDirectAccess(&p);
   }
@@ -98,7 +99,8 @@ bool PkgInfoClient::SendRequest() {
 
   cpu_inheritance_invoker_.SetCPUInheritance();
   if (!socket_->Connect(req_type_)) {
-    LOG(ERROR) << "Failed to connect client socket, try to direct access";
+    LOG(ERROR) << "Failed to connect client socket, try to direct access"
+        ", Request type: " << pkgmgr_common::ReqTypeToString(req_type_);
     is_offline_ = true;
     return RequestHandlerDirectAccess(&p);
   }
@@ -197,6 +199,8 @@ bool PkgInfoClient::RequestHandlerDirectAccess(tizen_base::Parcel* parcel) {
           dl_func(req_type_, raw, len,
               pkgmgr_common::SystemLocale::GetInst(false).Get().c_str())));
 
+  LOG(WARNING) << "Success to receive result";
+
   return true;
 }