summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Haller <thaller@redhat.com>2019-04-07 10:07:06 +0200
committerThomas Haller <thaller@redhat.com>2019-04-09 20:40:18 +0200
commit6f663b8f8e943b3330a9be7c31e3bbf98a99d149 (patch)
treef7053cc2adb7ee447bb327a5f2ce177111c18ec8
parent759927f99e9927b5564cfbba8465378ce2426e9e (diff)
downloadNetworkManager-6f663b8f8e943b3330a9be7c31e3bbf98a99d149.tar.gz
dns: log about what NMDnsSystemdResolved is doing
-rw-r--r--src/dns/nm-dns-systemd-resolved.c13
1 files 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);
}