Apply secure log
[platform/framework/native/appfw.git] / src / app / package / FAppPkg_PackageAppInfoImpl.cpp
index c9d2903..47799d1 100755 (executable)
@@ -33,6 +33,7 @@
 #include <FIoDbEnumerator.h>
 #include <FIoDbStatement.h>
 #include <FIoFile.h>
+#include <FIoDirectory.h>
 #include <FBase_StringConverter.h>
 
 #include "FAppPkg_PackageManagerImpl.h"
@@ -322,7 +323,7 @@ _PackageAppInfoImpl::Construct(const AppId& appId)
        SysTryReturnResult(NID_APP, pAppId, E_OUT_OF_MEMORY, "pAppId is null");
 
        res = pkgmgrinfo_appinfo_get_appinfo(pAppId.get(), &__pAppInfoHandle);
-       SysTryReturnResult(NID_APP, res == 0, E_SYSTEM, "pkgmgrinfo_appinfo_get_appinfo failed, res = [%d], appId = [%s]", res, pAppId.get());
+       SysTryReturnResult(NID_APP, res == 0, E_SYSTEM, "pkgmgrinfo_appinfo_get_appinfo failed, res = [%d], app = [%s]", res, pAppId.get());
 
        __fromDatabase = true;
 
@@ -369,7 +370,6 @@ _PackageAppInfoImpl::Construct(const AppId& appId)
        res = pkgmgrinfo_appinfo_get_icon(__pAppInfoHandle, &pMenuIcon);
        if (res == PMINFO_R_OK)
        {
-               SysLog(NID_APP, "pkgmgrinfo_appinfo_get_icon(): MenuIcon = [%s]", pMenuIcon);
                String menuIcon(pMenuIcon);
                SetAppMenuIconPath(menuIcon);
        }
@@ -381,7 +381,6 @@ _PackageAppInfoImpl::Construct(const AppId& appId)
        res = pkgmgrinfo_appinfo_get_setting_icon(__pAppInfoHandle, &pSettingIcon);
        if (res == PMINFO_R_OK)
        {
-               SysLog(NID_APP, "pkgmgrinfo_appinfo_get_setting_icon(): SettingIcon = [%s]", pSettingIcon);
                String settingIcon(pSettingIcon);
                SetAppSettingIconPath(settingIcon);
        }
@@ -393,7 +392,6 @@ _PackageAppInfoImpl::Construct(const AppId& appId)
        res = pkgmgrinfo_appinfo_get_notification_icon(__pAppInfoHandle, &pNotificationIcon);
        if (res == PMINFO_R_OK)
        {
-               SysLog(NID_APP, "pkgmgrinfo_appinfo_get_notification_icon(): NotificationIcon = [%s]", pNotificationIcon);
                String notificationIcon(pNotificationIcon);
                SetAppNotificationIconPath(notificationIcon);
        }
@@ -536,6 +534,9 @@ _PackageAppInfoImpl::~_PackageAppInfoImpl(void)
        if (File::IsFileExist(__appTempIconPath) == true)
        {
                File::Remove(__appTempIconPath);
+
+               String tmp(L"/tmp/__icon/");
+               Directory::Remove(tmp, true);
        }
 }