diff options
author | Tom Gundersen <teg@jklm.no> | 2015-11-10 21:45:41 +0100 |
---|---|---|
committer | Tom Gundersen <teg@jklm.no> | 2015-11-11 15:42:38 +0100 |
commit | 4058d339f5b290ec970e1de0d3b804e4934acc20 (patch) | |
tree | defe1a2bab15d776e52b8ba3d5a1c8744c0ef7bf /src/network/networkd-link.c | |
parent | e7ab854c6cff0d7330d4ddf2d89bf431ca9a0939 (diff) |
networkd: improve logging
Diffstat (limited to 'src/network/networkd-link.c')
-rw-r--r-- | src/network/networkd-link.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/network/networkd-link.c b/src/network/networkd-link.c index 1194491797..a7d0908bdd 100644 --- a/src/network/networkd-link.c +++ b/src/network/networkd-link.c @@ -2706,9 +2706,8 @@ int link_save(Link *link) { sd_dhcp6_lease *dhcp6_lease = NULL; if (link->dhcp6_client) { - r = sd_dhcp6_client_get_lease(link->dhcp6_client, - &dhcp6_lease); - if (r < 0) + r = sd_dhcp6_client_get_lease(link->dhcp6_client, &dhcp6_lease); + if (r < 0 && r != -ENOMSG) log_link_debug(link, "No DHCPv6 lease"); } |