diff options
author | Philip Withnall <pwithnall@endlessos.org> | 2023-04-24 16:30:45 +0100 |
---|---|---|
committer | Philip Withnall <pwithnall@endlessos.org> | 2023-04-25 15:35:54 +0100 |
commit | c256af1c2d87afaa24c17ada66a4452ab48fa945 (patch) | |
tree | c64153795b2c4c9edd9f567697db6001f554e528 | |
parent | 28b1b9d9c3cd1a7cebe9eac53dc49941eb47298c (diff) | |
download | glib-c256af1c2d87afaa24c17ada66a4452ab48fa945.tar.gz |
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 <pwithnall@endlessos.org>
-rw-r--r-- | gio/gthreadedresolver.c | 4 |
1 files changed, 4 insertions, 0 deletions
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); |