diff options
author | Tom Gundersen <teg@jklm.no> | 2014-01-16 14:59:26 +0100 |
---|---|---|
committer | Tom Gundersen <teg@jklm.no> | 2014-01-16 20:32:08 +0100 |
commit | 1f6d9bc9ee894d4023b7eacea1754986f25bce57 (patch) | |
tree | 36a36cf59014d602b63641ad4fe8eb23cab8d1c9 /src/network/networkd-link.c | |
parent | c4e6e24255de376965c7f8ae53e16594c2581200 (diff) |
networkd: improve logging
Diffstat (limited to 'src/network/networkd-link.c')
-rw-r--r-- | src/network/networkd-link.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/network/networkd-link.c b/src/network/networkd-link.c index 993931d1cd..8960b60ab1 100644 --- a/src/network/networkd-link.c +++ b/src/network/networkd-link.c @@ -580,6 +580,7 @@ static int link_update_flags(Link *link, unsigned flags) { if (link->network->dhcp) { r = link_acquire_conf(link); if (r < 0) { + log_warning_link(link, "Could not acquire DHCPv4 lease: %s", strerror(-r)); link_enter_failed(link); return r; } @@ -590,6 +591,7 @@ static int link_update_flags(Link *link, unsigned flags) { if (link->network->dhcp) { r = sd_dhcp_client_stop(link->dhcp); if (r < 0) { + log_warning_link(link, "Could not stop DHCPv4 client: %s", strerror(-r)); link_enter_failed(link); return r; } |