Reduce printing error logs 56/279756/2
authorHwankyu Jhun <h.jhun@samsung.com>
Wed, 17 Aug 2022 07:38:19 +0000 (07:38 +0000)
committerHwankyu Jhun <h.jhun@samsung.com>
Wed, 17 Aug 2022 22:05:12 +0000 (22:05 +0000)
If the application doesn't have the icon path, the app_info_get_icon()
function returns a negative error value with printing "Invalid parmater"
log message. This patch removes printing logs to reduce.

Change-Id: Ic0a09f9c05c364e215b002a2ee0a4d6edbf59708
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
src/app_info.c

index 1abbcc4..e5177be 100644 (file)
@@ -514,7 +514,7 @@ API int app_info_get_icon(app_info_h app_info, char **path)
 
        ret = pkgmgrinfo_appinfo_get_icon(app_info->pkg_app_info, &val);
        if (ret != PMINFO_R_OK || val == NULL)
-               return app_manager_error(APP_MANAGER_ERROR_INVALID_PARAMETER, __FUNCTION__, NULL);
+               return APP_MANAGER_ERROR_INVALID_PARAMETER;
 
        app_icon_dup = strdup(val);
        if (app_icon_dup == NULL)