Writing a file log for widget app exit 60/208760/2
authorhyunho <hhstark.kang@samsung.com>
Fri, 28 Jun 2019 04:32:56 +0000 (13:32 +0900)
committerhyunho <hhstark.kang@samsung.com>
Fri, 28 Jun 2019 04:33:47 +0000 (13:33 +0900)
Change-Id: I976f3c07e32c1afa96d4d7c6444b8017e2c851c9
Signed-off-by: hyunho <hhstark.kang@samsung.com>
src/base/widget_base.c

index 71f41a2..c11f0af 100644 (file)
@@ -758,14 +758,17 @@ static void __multiwindow_trim_memory(void *data)
 
 EXPORT_API int widget_base_exit(void)
 {
-       int ret;
+       int ret = 0;
+       int cnt;
 
        appcore_multiwindow_base_exit();
-       if (appcore_multiwindow_base_instance_get_cnt() == 0 && __is_permanent) {
+       cnt = appcore_multiwindow_base_instance_get_cnt();
+       if (cnt == 0 && __is_permanent)
                ret = aul_notify_exit();
-               aul_widget_write_log(LOG_TAG, "[%s:%d] permanent exit : %d",
-                       __FUNCTION__, __LINE__, ret);
-       }
+
+       aul_widget_write_log(LOG_TAG,
+               "[%s:%d] exit : ret(%d), cnt(%d), permanent(%d)",
+                       __FUNCTION__, __LINE__, ret, cnt, __is_permanent);
 
        return 0;
 }