add log in booting time
authorJihoon Kim <jihoon48.kim@samsung.com>
Tue, 26 Mar 2013 03:10:20 +0000 (12:10 +0900)
committerJihoon Kim <jihoon48.kim@samsung.com>
Tue, 26 Mar 2013 07:19:07 +0000 (16:19 +0900)
Change-Id: I3f86243de55d393d255b2bd946ddf780c92a2ec0

ism/extras/efl_panel/isf_panel_efl.cpp

index 7b562a2..91407f9 100644 (file)
@@ -3253,12 +3253,21 @@ static void start_default_ise (void)
     String default_uuid = scim_global_config_read (String (SCIM_GLOBAL_CONFIG_DEFAULT_ISE_UUID), _initial_ise_uuid);
     if (!set_active_ise (default_uuid)) {
         std::cerr << __FUNCTION__ << " Failed to launch default ISE(" << default_uuid << ")\n";
+        LOGE ("Failed to launch default ISE (%s)\n", default_uuid.c_str ());
 
         if (default_uuid != _initial_ise_uuid) {
             std::cerr << __FUNCTION__ << " Launch initial ISE(" << _initial_ise_uuid << ")\n";
-            set_active_ise (_initial_ise_uuid);
+            if (!set_active_ise (_initial_ise_uuid)) {
+                LOGE ("Failed to launch initial ISE (%s)\n", _initial_ise_uuid.c_str ());
+            }
+            else {
+                LOGD ("Succeed to launch initial ISE (%s)\n", _initial_ise_uuid.c_str ());
+            }
         }
     }
+    else {
+        LOGD ("Succeed to launch default ISE (%s)\n", default_uuid.c_str ());
+    }
 }
 
 /**
@@ -3466,6 +3475,7 @@ static bool check_system_ready (void)
     ret = vconf_get_int (ISF_SYSTEM_APPSERVICE_READY_VCONF, &val);
 
     if (ret == 0 && val >= ISF_SYSTEM_APPSERVICE_READY_STATE) {
+        LOGD ("Appservice was ready\n");
         return true;
     } else {
         /* Register a call back function for checking system ready */
@@ -3706,13 +3716,19 @@ int main (int argc, char *argv [])
 
     if (!check_wm_ready ()) {
         std::cerr << "[ISF-PANEL-EFL] WM ready timeout\n";
+        LOGE ("Window Manager ready timeout\n");
+    }
+    else {
+        LOGD ("Window Manager is in ready state\n");
     }
 
     elm_init (argc, argv);
     check_time ("elm_init");
 
-    if (!efl_create_control_window ())
+    if (!efl_create_control_window ()) {
+        LOGE ("Failed to create control window\n");
         goto cleanup;
+    }
 
     efl_get_screen_resolution (_screen_width, _screen_height);