[seahorse/feature/seahorse-pgp-key-api: 8/8] hkp: Print debug line for HKP query string
- From: Niels De Graef <nielsdg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [seahorse/feature/seahorse-pgp-key-api: 8/8] hkp: Print debug line for HKP query string
- Date: Sun, 15 Aug 2021 12:13:31 +0000 (UTC)
commit 2383adbfbea4a2efbce427bebcfdfba904b4e7e3
Author: Niels De Graef <nielsdegraef gmail com>
Date: Sun Aug 15 14:12:29 2021 +0200
hkp: Print debug line for HKP query string
pgp/seahorse-hkp-source.c | 14 +++++++++-----
1 file changed, 9 insertions(+), 5 deletions(-)
---
diff --git a/pgp/seahorse-hkp-source.c b/pgp/seahorse-hkp-source.c
index 09387433..b31706e3 100644
--- a/pgp/seahorse-hkp-source.c
+++ b/pgp/seahorse-hkp-source.c
@@ -582,11 +582,11 @@ is_hex_keyid (const char *match)
static void
seahorse_hkp_source_search_async (SeahorseServerSource *source,
- const gchar *match,
- GcrSimpleCollection *results,
- GCancellable *cancellable,
- GAsyncReadyCallback callback,
- gpointer user_data)
+ const char *match,
+ GcrSimpleCollection *results,
+ GCancellable *cancellable,
+ GAsyncReadyCallback callback,
+ void *user_data)
{
SeahorseHKPSource *self = SEAHORSE_HKP_SOURCE (source);
source_search_closure *closure;
@@ -594,6 +594,7 @@ seahorse_hkp_source_search_async (SeahorseServerSource *source,
g_autoptr(GHashTable) form = NULL;
SoupMessage *message;
g_autoptr(SoupURI) uri = NULL;
+ g_autofree char *uri_str = NULL;
task = g_task_new (source, cancellable, callback, user_data);
closure = g_new0 (source_search_closure, 1);
@@ -626,6 +627,9 @@ seahorse_hkp_source_search_async (SeahorseServerSource *source,
seahorse_progress_prep_and_begin (cancellable, message, NULL);
+ uri_str = soup_uri_to_string (uri_str, TRUE);
+ g_debug ("Sending HKP search query to '%s'", uri_str);
+
soup_session_queue_message (closure->session, g_steal_pointer (&message),
on_search_message_complete,
g_steal_pointer (&task));
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]