mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-01-12 15:36:17 +01:00
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>
This commit is contained in:
parent
28b1b9d9c3
commit
c256af1c2d
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user