diff options
author | Ronan Pigott <ronan@rjp.ie> | 2024-10-22 17:20:17 +0200 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2024-10-23 10:24:39 +0200 |
commit | c7c9e3c7c016903323008e09b50675d3f6f106c5 (patch) | |
tree | 17912929131799bb6a0e367b35f86ff24bf5692c /src/network | |
parent | Merge pull request #34861 from poettering/can-idle (diff) | |
download | systemd-c7c9e3c7c016903323008e09b50675d3f6f106c5.tar.xz systemd-c7c9e3c7c016903323008e09b50675d3f6f106c5.zip |
network: adjust log message about DNR
The only possible error return in this position is -ENODATA, which is
not interesting.
Diffstat (limited to '')
-rw-r--r-- | src/network/networkd-state-file.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/network/networkd-state-file.c b/src/network/networkd-state-file.c index 4cbf6ec92f..337eaa5447 100644 --- a/src/network/networkd-state-file.c +++ b/src/network/networkd-state-file.c @@ -601,11 +601,11 @@ static void serialize_resolvers( r = sd_dhcp_lease_get_dnr(lease, &resolvers); if (r < 0) - return (void) log_warning_errno(r, "Failed to get DNR from DHCP lease, ignoring."); + return (void) log_debug_errno(r, "Failed to get DNR from DHCP lease, ignoring: %m"); r = dns_resolvers_to_dot_strv(resolvers, r, &names); if (r < 0) - return (void) log_warning_errno(r, "Failed to get DoT servers from DHCP DNR, ignoring."); + return (void) log_warning_errno(r, "Failed to get DoT servers from DHCP DNR, ignoring: %m"); if (r > 0) fputstrv(f, names, NULL, space); } @@ -617,11 +617,11 @@ static void serialize_resolvers( r = sd_dhcp6_lease_get_dnr(lease6, &resolvers); if (r < 0) - return (void) log_warning_errno(r, "Failed to get DNR from DHCPv6 lease, ignoring."); + return (void) log_debug_errno(r, "Failed to get DNR from DHCPv6 lease, ignoring: %m"); r = dns_resolvers_to_dot_strv(resolvers, r, &names); if (r < 0) - return (void) log_warning_errno(r, "Failed to get DoT servers from DHCPv6 DNR, ignoring."); + return (void) log_warning_errno(r, "Failed to get DoT servers from DHCPv6 DNR, ignoring: %m"); if (r > 0) fputstrv(f, names, NULL, space); } |