summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2016-01-05 19:43:51 +0100
committerLennart Poettering <lennart@poettering.net>2016-01-05 20:00:59 +0100
commit125ae29d1bc3a6362c9bb1acddbe09fe1b274cfc (patch)
treeb9fa2da4458614805fd628fe30c2726534ce054b
parent00f0a16ab4576535021456f8955446d3ae8f0b5f (diff)
resolved: log about per-interface setting parse errors
-rw-r--r--src/resolve/resolved-link.c15
1 files changed, 12 insertions, 3 deletions
diff --git a/src/resolve/resolved-link.c b/src/resolve/resolved-link.c
index 9ebaf137d8..8785079de8 100644
--- a/src/resolve/resolved-link.c
+++ b/src/resolve/resolved-link.c
@@ -320,9 +320,18 @@ int link_update_monitor(Link *l) {
assert(l);
- link_update_dns_servers(l);
- link_update_llmnr_support(l);
- link_update_mdns_support(l);
+ r = link_update_dns_servers(l);
+ if (r < 0)
+ log_warning_errno(r, "Failed to read DNS servers for interface %s, ignoring: %m", l->name);
+
+ r = link_update_llmnr_support(l);
+ if (r < 0)
+ log_warning_errno(r, "Failed to read LLMNR support for interface %s, ignoring: %m", l->name);
+
+ r = link_update_mdns_support(l);
+ if (r < 0)
+ log_warning_errno(r, "Failed to read mDNS support for interface %s, ignoring: %m", l->name);
+
link_allocate_scopes(l);
r = link_update_search_domains(l);