From 6f663b8f8e943b3330a9be7c31e3bbf98a99d149 Mon Sep 17 00:00:00 2001 From: Thomas Haller Date: Sun, 7 Apr 2019 10:07:06 +0200 Subject: [PATCH] dns: log about what NMDnsSystemdResolved is doing --- src/dns/nm-dns-systemd-resolved.c | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/src/dns/nm-dns-systemd-resolved.c b/src/dns/nm-dns-systemd-resolved.c index 64e7bdb864..fddd7603f2 100644 --- a/src/dns/nm-dns-systemd-resolved.c +++ b/src/dns/nm-dns-systemd-resolved.c @@ -129,7 +129,7 @@ call_done (GObject *source, GAsyncResult *r, gpointer user_data) if (!v) { if (g_error_matches (error, G_IO_ERROR, G_IO_ERROR_CANCELLED)) return; - _LOGW ("Failed: %s", error->message); + _LOGW ("send-updates failed: %s", error->message); } } @@ -270,8 +270,13 @@ send_updates (NMDnsSystemdResolved *self) nm_clear_g_cancellable (&priv->update_cancellable); - if (!priv->resolve) + if (!priv->resolve) { + _LOGT ("send-updates: D-Bus proxy not ready"); return; + } + + _LOGT ("send-updates: start %lu requests", + c_list_length (&priv->request_queue_lst_head)); priv->update_cancellable = g_cancellable_new (); @@ -375,11 +380,13 @@ resolved_proxy_created (GObject *source, GAsyncResult *r, gpointer user_data) priv = NM_DNS_SYSTEMD_RESOLVED_GET_PRIVATE (self); g_clear_object (&priv->init_cancellable); if (!resolve) { - _LOGW ("failed to connect to resolved via DBus: %s", error->message); + _LOGW ("failure to create D-Bus proxy for systemd-resolved: %s", error->message); g_signal_emit_by_name (self, NM_DNS_PLUGIN_FAILED); return; } + _LOGT ("D-Bus proxy for systemd-resolved created"); + priv->resolve = resolve; send_updates (self); }