From c256af1c2d87afaa24c17ada66a4452ab48fa945 Mon Sep 17 00:00:00 2001 From: Philip Withnall Date: Mon, 24 Apr 2023 16:30:45 +0100 Subject: [PATCH] gthreadedresolver: Add some additional debug prints These make it a bit easier to track the ongoing resolver tasks, as the tasks and/or their closures are not tracked in a big list somewhere. Signed-off-by: Philip Withnall --- gio/gthreadedresolver.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/gio/gthreadedresolver.c b/gio/gthreadedresolver.c index 68b5c20d7..021409d3c 100644 --- a/gio/gthreadedresolver.c +++ b/gio/gthreadedresolver.c @@ -254,6 +254,10 @@ lookup_by_name_with_flags_async (GResolver *resolver, data = lookup_data_new (hostname, flags_to_family (flags)); task = g_task_new (resolver, cancellable, callback, user_data); + + g_debug ("%s: starting new lookup for %s with GTask %p, LookupData %p", + G_STRFUNC, hostname, task, data); + g_task_set_source_tag (task, lookup_by_name_with_flags_async); g_task_set_name (task, "[gio] resolver lookup"); g_task_set_task_data (task, data, (GDestroyNotify)lookup_data_free);