From: Hwankyu Jhun Date: Wed, 17 Aug 2022 07:38:19 +0000 (+0000) Subject: Reduce printing error logs X-Git-Tag: submit/tizen/20220818.000052~1 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=d7d608c7a24bd575ac224d24ef5f811f6a765dba;p=platform%2Fcore%2Fapi%2Fapp-manager.git 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 --- 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)