From 524110d20b9d1ab771f3c25e43a949e3c086ba17 Mon Sep 17 00:00:00 2001 From: Ilho Kim Date: Thu, 14 Dec 2023 16:22:52 +0900 Subject: [PATCH] Print the request type when trying direct access Change-Id: Ifbd5223c86c3a6924356d808e480f2485d039ce7 Signed-off-by: Ilho Kim --- src/client/pkginfo_client.cc | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/client/pkginfo_client.cc b/src/client/pkginfo_client.cc index 1ddf911..a81ea7b 100644 --- a/src/client/pkginfo_client.cc +++ b/src/client/pkginfo_client.cc @@ -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; } -- 2.7.4