Print the request type when trying direct access 49/310349/1
authorIlho Kim <ilho159.kim@samsung.com>
Thu, 14 Dec 2023 07:22:52 +0000 (16:22 +0900)
committerIlho Kim <ilho159.kim@samsung.com>
Thu, 25 Apr 2024 11:07:38 +0000 (20:07 +0900)
Change-Id: Ifbd5223c86c3a6924356d808e480f2485d039ce7
Signed-off-by: Ilho Kim <ilho159.kim@samsung.com>
(cherry picked from commit 524110d20b9d1ab771f3c25e43a949e3c086ba17)

src/client/pkginfo_client.cc

index 54382dd19641ca0cd87fdac06927c8b8397537ae..47951ed894f3a961827c388a382a3fbc77325e89 100644 (file)
@@ -58,7 +58,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.GetRaw());
   }
@@ -67,7 +68,8 @@ bool PkgInfoClient::SendRequest() {
       << pkgmgr_common::ReqTypeToString(req_type_);
 
   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.GetRaw());
   }
@@ -157,6 +159,8 @@ bool PkgInfoClient::RequestHandlerDirectAccess(
           dl_func(req_type_, &raw[0], raw.size(),
               pkgmgr_common::SystemLocale::GetInst(false).Get().c_str())));
 
+  LOG(WARNING) << "Success to receive result";
+
   return true;
 }