From f6a4acb3ddd5882be0a35f768d18a97a9a73989f Mon Sep 17 00:00:00 2001 From: Evangelos Ribeiro Tzaras Date: Fri, 12 May 2023 12:25:32 +0200 Subject: [PATCH] sip-provider: Add debugging to password lookup (cherry picked from commit 9c5d7a58a1cd0293c25ee6aec64aad3aa50d1661) --- plugins/provider/sip/calls-sip-provider.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/plugins/provider/sip/calls-sip-provider.c b/plugins/provider/sip/calls-sip-provider.c index a80ef64..f4e6cf2 100644 --- a/plugins/provider/sip/calls-sip-provider.c +++ b/plugins/provider/sip/calls-sip-provider.c @@ -140,6 +140,8 @@ on_origin_pw_looked_up (GObject *source, else id = g_strdup (data->name); + g_debug ("Password looked up for %s", id); + host = g_key_file_get_string (data->key_file, data->name, "Host", NULL); user = g_key_file_get_string (data->key_file, data->name, "User", NULL); display_name = g_key_file_get_string (data->key_file, data->name, "DisplayName", NULL); @@ -197,6 +199,8 @@ on_origin_pw_looked_up (GObject *source, can_tel, FALSE); } + + static void new_origin_from_keyfile_secret (CallsSipProvider *self, GKeyFile *key_file, @@ -223,6 +227,7 @@ new_origin_from_keyfile_secret (CallsSipProvider *self, data->key_file = g_key_file_ref (key_file); data->name = g_strdup (name); + g_debug ("Looking up password for account '%s'", name); secret_password_lookup (calls_secret_get_schema (), NULL, on_origin_pw_looked_up, data, CALLS_SERVER_ATTRIBUTE, host,