Add more logs in IME plugin
authorJihoon Kim <jihoon48.kim@samsung.com>
Mon, 27 Feb 2017 10:34:14 +0000 (19:34 +0900)
committerJihoon Kim <jihoon48.kim@samsung.com>
Mon, 27 Feb 2017 23:50:27 +0000 (08:50 +0900)
Change-Id: I3475d9a76562eebc9dcebf60d9bd691842dc60ff
Signed-off-by: Jihoon Kim <jihoon48.kim@samsung.com>
ism/extras/pkgmgr_parser/ime_parser.c

index f205e20..ad953ae 100644 (file)
@@ -46,11 +46,14 @@ int PKGMGR_CATEGORY_PARSER_PLUGIN_INSTALL(const char *pkgid, const char *appid,
     pkgmgrinfo_appinfo_h appinfo_handle = NULL;
 
     ret = pkgmgrinfo_appinfo_get_appinfo(appid, &appinfo_handle);
-    if (ret != PMINFO_R_OK)
+    if (ret != PMINFO_R_OK) {
+        LOGW("pkgmgrinfo_appinfo_get_appinfo() failed\n");
         return -1;
+    }
 
     ret = pkgmgrinfo_appinfo_get_exec(appinfo_handle, &exec_path);
     if (ret != PMINFO_R_OK) {
+        LOGW("pkgmgrinfo_appinfo_get_exec() failed\n");
         pkgmgrinfo_appinfo_destroy_appinfo(appinfo_handle);
         return -1;
     }
@@ -58,6 +61,7 @@ int PKGMGR_CATEGORY_PARSER_PLUGIN_INSTALL(const char *pkgid, const char *appid,
     /* Try to get in global packages */
     ret = pkgmgrinfo_pkginfo_get_pkginfo(pkgid, &pkginfo_handle);
     if (ret != PMINFO_R_OK) {
+        LOGW("pkgmgrinfo_pkginfo_get_pkginfo() failed\n");
         pkgmgrinfo_appinfo_destroy_appinfo(appinfo_handle);
         return -1;
     }
@@ -84,6 +88,9 @@ int PKGMGR_CATEGORY_PARSER_PLUGIN_INSTALL(const char *pkgid, const char *appid,
             else
                 LOGD("Succeeded to create symbolic link : %s\n", exec_path);
         }
+        else {
+            LOGW("Can't create symbolic link. %s is existed\n", exec_path);
+        }
     }
 
     pkgmgrinfo_pkginfo_destroy_pkginfo(pkginfo_handle);