Change log level
authorJunghyun Yeon <jungh.yeon@samsung.com>
Fri, 5 Mar 2021 08:51:09 +0000 (17:51 +0900)
committerJunghyun Yeon <jungh.yeon@samsung.com>
Fri, 5 Mar 2021 08:51:09 +0000 (17:51 +0900)
Only PMINFO_R_ERROR will be logged with ERROR tag

Signed-off-by: Junghyun Yeon <jungh.yeon@samsung.com>
src/manager/pkginfo_manager.cc

index c8d144c..17189c6 100644 (file)
@@ -142,9 +142,14 @@ extern "C" EXPORT_API int _appinfo_get_applications(uid_t db_uid, uid_t uid,
                return PMINFO_R_ERROR;
        }
 
-       if (return_parcel->GetRequestResult() != PMINFO_R_OK) {
-               LOG(ERROR) << "Request fail";
-               return return_parcel->GetRequestResult();
+       int ret = return_parcel->GetRequestResult();
+       if (ret != PMINFO_R_OK) {
+               if (ret == PMINFO_R_ENOENT) {
+                       LOG(DEBUG) << "No such application";
+               } else {
+                       LOG(ERROR) << "Request fail";
+               }
+               return ret;
        }
 
        tizen_base::Parcel parcel;