summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Haller <thaller@redhat.com>2020-11-20 17:08:44 +0100
committerThomas Haller <thaller@redhat.com>2020-11-20 18:28:48 +0100
commitfbf1683c1a75c6eee002b5ed2eaa81a3f7126c84 (patch)
tree4cd9f775e74be1961d9f6a3fd92ff78bace13f60
parentee9fab03613e30f818d56217a968d1fabd5ea8d7 (diff)
downloadNetworkManager-fbf1683c1a75c6eee002b5ed2eaa81a3f7126c84.tar.gz
dns: more debug logging for DNS settings in rebuild_domain_lists()
-rw-r--r--src/dns/nm-dns-manager.c15
1 files changed, 15 insertions, 0 deletions
diff --git a/src/dns/nm-dns-manager.c b/src/dns/nm-dns-manager.c
index caf99fc36e..74b8a72648 100644
--- a/src/dns/nm-dns-manager.c
+++ b/src/dns/nm-dns-manager.c
@@ -1557,6 +1557,21 @@ rebuild_domain_lists(NMDnsManager *self)
has_default_route_explicit || (priority < 0 && has_default_route_auto);
ip_data->domains.has_default_route =
ip_data->domains.has_default_route_exclusive || has_default_route_auto;
+
+ {
+ gs_free char *str1 = NULL;
+ gs_free char *str2 = NULL;
+
+ _LOGT("plugin: settings: ifindex=%d, priority=%d, default-route=%d%s, search=%s, reverse=%s",
+ ip_data->data->ifindex,
+ priority,
+ ip_data->domains.has_default_route,
+ ip_data->domains.has_default_route_explicit
+ ? " (explicit)"
+ : (ip_data->domains.has_default_route_exclusive ? " (exclusive)" : ""),
+ (str1 = g_strjoinv(",", (char **) ip_data->domains.search)),
+ (str2 = g_strjoinv(",", ip_data->domains.reverse)));
+ }
}
}