[gnome-online-accounts/wip/rishi/gtask: 5/5] httpclient: Log debug messages to track the status of the client



commit 347b77cb88e0a1632144f444960f2f1bf47ee569
Author: Debarshi Ray <debarshir gnome org>
Date:   Tue Nov 27 18:04:24 2018 +0100

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

 src/goabackend/goahttpclient.c | 6 ++++++
 1 file changed, 6 insertions(+)
---
diff --git a/src/goabackend/goahttpclient.c b/src/goabackend/goahttpclient.c
index bd133a4d..81aa52d0 100644
--- a/src/goabackend/goahttpclient.c
+++ b/src/goabackend/goahttpclient.c
@@ -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);
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]