summaryrefslogtreecommitdiff
path: root/src/network/networkd-link.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/network/networkd-link.c')
-rw-r--r--src/network/networkd-link.c2
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;
}