Commit c09c5f4c authored by Debarshi Ray's avatar Debarshi Ray

httpclient: Log debug messages to track the status of the client

parent 5cab7b7f
......@@ -119,6 +119,8 @@ http_client_request_started (SoupSession *session, SoupMessage *msg, SoupSocket
GTask *task = G_TASK (user_data);
GTlsCertificateFlags cert_flags;
g_debug ("goa_http_client_check(): request started (%p)", msg);
data = (CheckData *) g_task_get_task_data (task);
if (!data->accept_ssl_errors
......@@ -141,6 +143,8 @@ http_client_check_cancelled_cb (GCancellable *cancellable, gpointer user_data)
CheckData *data;
GTask *task = G_TASK (user_data);
g_debug ("goa_http_client_check(): cancelled");
data = (CheckData *) g_task_get_task_data (task);
/* The callback will be invoked after we have returned to the main
......@@ -156,6 +160,8 @@ http_client_check_response_cb (SoupSession *session, SoupMessage *msg, gpointer
GCancellable *cancellable;
GTask *task = G_TASK (user_data);
g_debug ("goa_http_client_check(): response (%p, %u)", msg, msg->status_code);
data = (CheckData *) g_task_get_task_data (task);
cancellable = g_task_get_cancellable (task);
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment