summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorColin Walters <walters@verbum.org>2023-04-26 16:46:43 -0400
committerGitHub <noreply@github.com>2023-04-26 16:46:43 -0400
commitb4dcfd7ede821c2577c04accb37ee8d5a25a5ab8 (patch)
tree7018b914b00e2142cdbac622a3647b7987bd828e
parent9c548d832ce78bdd5a1611d9081c203f617ad821 (diff)
parent77e334e5b47826fb3919c337a517f66861dd824f (diff)
downloadostree-b4dcfd7ede821c2577c04accb37ee8d5a25a5ab8.tar.gz
Merge pull request #2849 from pwithnall/request-debugging
lib/fetcher: Add some debugging messages to the libsoup request path
-rw-r--r--src/libostree/ostree-fetcher-soup.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/libostree/ostree-fetcher-soup.c b/src/libostree/ostree-fetcher-soup.c
index 53a63f14..638a950b 100644
--- a/src/libostree/ostree-fetcher-soup.c
+++ b/src/libostree/ostree-fetcher-soup.c
@@ -485,6 +485,12 @@ session_thread_request_uri (ThreadClosure *thread_closure,
return;
}
+ {
+ g_autofree gchar *uri_str = soup_uri_to_string (soup_request_get_uri (pending->request), FALSE);
+ g_debug ("%s: starting request %p for URI %s, using GTask %p",
+ G_STRFUNC, pending->request, uri_str, task);
+ }
+
if (SOUP_IS_REQUEST_HTTP (pending->request) && thread_closure->extra_headers)
{
glnx_unref_object SoupMessage *msg = soup_request_http_get_message ((SoupRequestHTTP*) pending->request);
@@ -1069,6 +1075,10 @@ on_request_sent (GObject *object,
pending->request_body = soup_request_send_finish ((SoupRequest*) object,
result, &local_error);
+ g_debug ("%s: request %p (GTask %p) finished with request_body %p and error %s",
+ G_STRFUNC, object, task, pending->request_body,
+ (local_error != NULL) ? local_error->message : "none");
+
if (!pending->request_body)
goto out;
g_assert_no_error (local_error);