Change as appropriate log level 96/203496/1
authorJihoon Kim <jihoon48.kim@samsung.com>
Mon, 15 Apr 2019 08:35:34 +0000 (17:35 +0900)
committerJihoon Kim <jihoon48.kim@samsung.com>
Mon, 15 Apr 2019 08:35:34 +0000 (17:35 +0900)
Change-Id: Ie53b321666e70bcd2e661cd16453edcbe1359659
Signed-off-by: Jihoon Kim <jihoon48.kim@samsung.com>
src/autofill-daemon.c
src/autofill_config.c

index 238fb4e70fac19d6864e16f37cdf1217a0a4419c..cfa2de54641b709c7e2d3f9afd7363ca44a5a1c5 100644 (file)
@@ -644,7 +644,7 @@ static void __error_info_recv_cb(void *user_data, int context_id, rpc_port_autof
     if (sender_client)
         rpc_port_AutofillAppPort_autofill_error_info_received_cb_invoke(sender_client->error_info_cb, error_info_h);
 
-    LOGD("error code : %#x, message : '%s'", error_code, get_error_message(error_code));
+    LOGI("error code : %#x, message : '%s'", error_code, get_error_message(error_code));
 
     if (app_id)
         free(app_id);
@@ -677,7 +677,7 @@ static void __on_connected(rpc_port_proxy_AutofillSvcPort_h h, void *user_data)
 
     int r = rpc_port_proxy_AutofillSvcPort_invoke_Register(h, auth_info_cb_h, fill_response_received_cb_h, error_info_cb_h);
     if (r != 0)
-        LOGD("Failed to invoke Register");
+        LOGW("Failed to invoke Register");
 
     g_connected = true;
 }
@@ -727,7 +727,7 @@ static void __on_disconnected(rpc_port_proxy_AutofillSvcPort_h h, void *user_dat
 
 static void __on_rejected(rpc_port_proxy_AutofillSvcPort_h h, void *user_data)
 {
-    LOGD("rejected");
+    LOGI("rejected");
 }
 //LCOV_EXCL_STOP
 
@@ -849,9 +849,9 @@ static bool connect_service()
         return true;
     }
 
-    LOGD("get autofill service app id...");
+    LOGD("get autofill service app id");
     autofill_config_get_autofill_service_app_id(&active_autofill_service_id, &sys_config);
-    LOGD("active autofill service app id: '%s'", active_autofill_service_id);
+    LOGI("active autofill service app id: '%s'", active_autofill_service_id);
 
     if (!active_autofill_service_id) {
         active_autofill_service_id = strdup(AUTOFILL_SERVICE_APP_ID);
@@ -869,7 +869,7 @@ static bool connect_service()
         ret = rpc_port_proxy_AutofillSvcPort_create(active_autofill_service_id, &rpc_callback, NULL, &svc_rpc_h);
     }
     else if (service_id_len == 0) {
-        LOGD("No Autofill service to connect");
+        LOGW("No Autofill service to connect");
         free(active_autofill_service_id);
         return false;
     }
@@ -880,7 +880,7 @@ static bool connect_service()
         return false;
     }
 
-    LOGD("Connect to autofill service: '%s'", active_autofill_service_id);
+    LOGI("Connect to autofill service: '%s'", active_autofill_service_id);
     free(active_autofill_service_id);
     ret = rpc_port_proxy_AutofillSvcPort_connect(svc_rpc_h);
     if (ret != RPC_PORT_ERROR_NONE) {
index 778d8266e82b45f2248556b8d27ee06759a25f4a..a9587ed9d53d32674c8735c2562926f398eedaa3 100644 (file)
@@ -40,16 +40,18 @@ bool autofill_config_get_autofill_service_app_id(char **app_id, bool *sys_config
         *sys_config = false;
 
     if (preference_get_string(SETTING_ACTIVE_AUTOFILL_SERVICE, &active_autofill_service_id) == PREFERENCE_ERROR_NONE) {
-        LOGD("preference active autofill service : %s", active_autofill_service_id);
+        LOGI("preference active autofill service : %s", active_autofill_service_id);
         *app_id = active_autofill_service_id;
         return true;
     }
 
-    LOGD("Read from config");
+    LOGI("Read from config");
 
     pFile = fopen(AUTOFILL_SYSTEM_CONFIG_FILE, "r");
-    if (pFile == NULL)
+    if (pFile == NULL) {
+        LOGW("Failed to open system config file");
         return false;
+    }
 
     while (fgets(strTemp, sizeof(strTemp), pFile) != NULL)
     {