From d7d608c7a24bd575ac224d24ef5f811f6a765dba Mon Sep 17 00:00:00 2001 From: Hwankyu Jhun Date: Wed, 17 Aug 2022 07:38:19 +0000 Subject: [PATCH] Reduce printing error logs 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 --- src/app_info.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/app_info.c b/src/app_info.c index 1abbcc4..e5177be 100644 --- a/src/app_info.c +++ b/src/app_info.c @@ -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) -- 2.7.4