Change log tag type for better debugging 64/246064/1
authorJihoon Kim <jihoon48.kim@samsung.com>
Fri, 23 Oct 2020 02:25:49 +0000 (11:25 +0900)
committerJihoon Kim <jihoon48.kim@samsung.com>
Fri, 23 Oct 2020 02:25:49 +0000 (11:25 +0900)
Change-Id: Ib2a430dadb8b60dcb37598fb82e3eef58dc9b1ae
Signed-off-by: Jihoon Kim <jihoon48.kim@samsung.com>
src/autofill-daemon.c
src/autofill_client.c
src/autofill_request_list.c

index 31a1858..2967374 100644 (file)
@@ -70,28 +70,28 @@ static void __remove_client(rpc_port_stub_AutofillAppPort_context_h context)
 static void __client_create(rpc_port_stub_AutofillAppPort_context_h context,
         void *user_data)
 {
-    LOGD("context : %p", context);
+    LOGI("context : %p", context);
     char *sender = NULL;
 
     rpc_port_stub_AutofillAppPort_context_get_sender(context, &sender);
     if (!sender)
         return;
 
-    LOGD("sender(%s)", sender);
+    LOGI("sender(%s)", sender);
     free(sender);
 }
 
 static void __client_terminate(rpc_port_stub_AutofillAppPort_context_h context,
         void *user_data)
 {
-    LOGD("context : %p", context);
+    LOGI("context : %p", context);
     char *sender = NULL;
 
     rpc_port_stub_AutofillAppPort_context_get_sender(context, &sender);
     if (!sender)
         return;
 
-    LOGD("[__RPC_PORT__] sender(%s)", sender);
+    LOGI("[__RPC_PORT__] sender(%s)", sender);
     free(sender);
 
     __remove_client(context);
@@ -104,7 +104,7 @@ static int __client_register(rpc_port_stub_AutofillAppPort_context_h context,
                               rpc_port_AutofillAppPort_autofill_error_info_received_cb_h error_info_cb,
                               void *user_data)
 {
-    LOGD("context : %p", context);
+    LOGI("context : %p", context);
     char *sender = NULL;
     autofill_client_s *client = NULL;
 
@@ -112,7 +112,7 @@ static int __client_register(rpc_port_stub_AutofillAppPort_context_h context,
     if (!sender)
         return -1;
 
-    LOGD("sender(%s)", sender);
+    LOGI("sender(%s)", sender);
 
     client = create_autofill_client(sender, context_id, auth_info_cb, fill_response_received_cb, error_info_cb);
     free(sender);
@@ -129,20 +129,20 @@ static int __client_register(rpc_port_stub_AutofillAppPort_context_h context,
 
 static void __client_unregister(rpc_port_stub_AutofillAppPort_context_h context, int context_id, void *user_data)
 {
-    LOGD("context : %p", context);
+    LOGI("context : %p", context);
     __remove_client(context);
 }
 
 static void __manager_create(rpc_port_stub_AutofillManagerPort_context_h context,
         void *user_data)
 {
-    LOGD("");
+    LOGI("");
 }
 
 static void __manager_terminate(rpc_port_stub_AutofillManagerPort_context_h context,
         void *user_data)
 {
-    LOGD("");
+    LOGI("");
 }
 
 bool __view_info_item_cb(rpc_port_autofill_item_h items, void *user_data)
@@ -257,7 +257,7 @@ static int __auth_info_request_cb(rpc_port_stub_AutofillAppPort_context_h contex
     rpc_port_stub_AutofillAppPort_context_get_sender(context, &sender);
 
     rpc_port_autofill_view_info_get_view_id(vi, &view_id);
-    LOGD("app id : %s, view id : %s", sender, view_id);
+    LOGI("app id : %s, view id : %s", sender, view_id);
 
     /* create view info */
     rpc_port_autofill_svc_view_info_h svi = NULL;
@@ -307,7 +307,7 @@ static int __autofill_fill_request_cb(rpc_port_stub_AutofillAppPort_context_h co
     rpc_port_stub_AutofillAppPort_context_get_sender(context, &sender);
     rpc_port_autofill_view_info_get_view_id(vi, &view_id);
 
-    LOGD("app id : %s, view id : %s, context id : %d", sender, view_id, context_id);
+    LOGI("app id : %s, view id : %s, context id : %d", sender, view_id, context_id);
 
     rpc_port_autofill_svc_view_info_h svi = NULL;
     if (rpc_port_autofill_svc_view_info_create(&svi) != 0) {
@@ -355,7 +355,7 @@ static int __autofill_cancel_fill_request_cb(rpc_port_stub_AutofillAppPort_conte
     rpc_port_stub_AutofillAppPort_context_get_sender(context, &sender);
     rpc_port_autofill_view_info_get_view_id(vi, &view_id);
 
-    LOGD("app id : %s, view id : %s, context id : %d", sender, view_id, context_id);
+    LOGI("app id : %s, view id : %s, context id : %d", sender, view_id, context_id);
 
     rpc_port_autofill_svc_view_info_h svi = NULL;
     if (rpc_port_autofill_svc_view_info_create(&svi) != 0) {
@@ -412,7 +412,7 @@ static int __commit_cb(rpc_port_stub_AutofillAppPort_context_h context, int cont
 
     if (sender) {
         rpc_port_autofill_svc_save_view_info_set_app_id(svi, sender);
-        LOGD("sender(%s)", sender);
+        LOGI("sender(%s)", sender);
         free(sender);
     }
 
@@ -548,7 +548,7 @@ static void __auth_info_recv_cb(void *user_data, int context_id, rpc_port_autofi
     rpc_port_autofill_svc_auth_info_get_service_logo_image_path(svc_auth_info_h, &service_logo_image_path);
     rpc_port_autofill_svc_auth_info_get_service_message(svc_auth_info_h, &service_message);
 
-    LOGD("app id : %s, service name : %s, message : %s, logo path : %s", app_id, service_name, service_message, service_logo_image_path);
+    LOGI("app id : %s, service name : %s, message : %s, logo path : %s", app_id, service_name, service_message, service_logo_image_path);
 
     /* transfer auth info */
     rpc_port_autofill_auth_info_h auth_info_h = NULL;
@@ -707,7 +707,7 @@ static void terminate_autofill_service()
         rpc_port_proxy_AutofillSvcPort_invoke_request_terminate(svc_rpc_h);
 
         int ret = rpc_port_proxy_AutofillSvcPort_destroy(svc_rpc_h);
-        LOGD("ret : %#x", ret);
+        LOGI("ret : %#x", ret);
         if (ret == RPC_PORT_ERROR_NONE) {
             fill_response_received_cb_h = NULL;
             auth_info_cb_h = NULL;
@@ -829,7 +829,7 @@ static bool connect_service()
         return true;
     }
 
-    LOGD("get autofill service app id");
+    LOGI("get autofill service app id");
     autofill_config_get_autofill_service_app_id(&active_autofill_service_id, &sys_config);
     LOGI("active autofill service app id: '%s'", active_autofill_service_id);
 
@@ -876,7 +876,7 @@ static bool connect_service()
 bool service_app_create(void *data)
 {
     // Todo: add your code here.
-    LOGD("");
+    LOGI("");
 
     int ret;
     // register app port
@@ -920,7 +920,7 @@ bool service_app_create(void *data)
 void service_app_terminate(void *data)
 {
     // Todo: add your code here.
-    LOGD("");
+    LOGI("");
 
     remove_all_client_list();
 
index 4fea7cd..8e28f06 100644 (file)
@@ -29,7 +29,6 @@ autofill_client_s *create_autofill_client(const char *app_id, int context_id,
         rpc_port_AutofillAppPort_autofill_fill_response_received_cb_h fill_response_received_cb,
         rpc_port_AutofillAppPort_autofill_error_info_received_cb_h error_info_cb)
 {
-    LOGD("");
     autofill_client_s *ac;
 
     ac = calloc(1, sizeof(autofill_client_s));
@@ -38,6 +37,8 @@ autofill_client_s *create_autofill_client(const char *app_id, int context_id,
         return NULL;
     }
 
+    LOGI("autofill client(%p)", ac);
+
     ac->app_id = strdup(app_id);
     if (!ac->app_id) {
         LOGE("Out of memory");
@@ -80,7 +81,7 @@ autofill_client_s *create_autofill_client(const char *app_id, int context_id,
 
 void destroy_autofill_client(autofill_client_s *ac)
 {
-    LOGD("");
+    LOGI("autofill client(%p)", ac);
 
     if (!ac)
         return;
index c767190..8cc6c43 100644 (file)
@@ -28,8 +28,8 @@ static GList *__pending_request_item_list = NULL;
 
 static void __destroy_pending_request(gpointer data)
 {
-    LOGD("");
     autofill_request_item_s *handle = data;
+    LOGI("request item(%p)", handle);
 
     if (!handle)
         return;
@@ -56,6 +56,8 @@ void add_request_item(autofill_request_type type, int context_id, void *req_data
     request_item_h->req_data = (void *)req_data;
     request_item_h->context_id = context_id;
 
+    LOGI("Add request type : %d, context id : %d", type, context_id);
+
     __pending_request_item_list = g_list_append(__pending_request_item_list, request_item_h);
 }
 
@@ -72,7 +74,7 @@ void process_pending_request(rpc_port_proxy_AutofillSvcPort_h svc_rpc_h)
     autofill_request_item_s *req_item;
     GList *iter;
 
-    LOGD("");
+    LOGI("");
 
     iter = __pending_request_item_list;
     while (iter) {
@@ -85,21 +87,21 @@ void process_pending_request(rpc_port_proxy_AutofillSvcPort_h svc_rpc_h)
             continue;
         }
 
-        LOGD("type : %d", req_item->req_type);
+        LOGI("request type : %d", req_item->req_type);
 
         rpc_port_autofill_svc_view_info_h svi = req_item->req_data;
 
         switch (req_item->req_type) {
             case AUTH_INFO_REQUEST:
-                LOGD("auth info request. context id : %d", req_item->context_id);
+                LOGI("auth info request. context id : %d", req_item->context_id);
                 rpc_port_proxy_AutofillSvcPort_invoke_request_auth_info(svc_rpc_h, req_item->context_id, svi);
                 break;
             case FILL_REQUEST:
-                LOGD("fill request. context id : %d", req_item->context_id);
+                LOGI("fill request. context id : %d", req_item->context_id);
                 rpc_port_proxy_AutofillSvcPort_invoke_send_fill_request(svc_rpc_h, req_item->context_id, svi);
                 break;
             case CANCEL_FILL_REQUEST:
-                LOGD("cancel fill request. context id : %d", req_item->context_id);
+                LOGI("cancel fill request. context id : %d", req_item->context_id);
                 rpc_port_proxy_AutofillSvcPort_invoke_cancel_fill_request(svc_rpc_h, req_item->context_id, svi);
                 break;
             default: