mirror of
https://github.com/systemd/systemd.git
synced 2024-12-25 01:34:28 +03:00
networkd: link - log when starting clients fail
This commit is contained in:
parent
2139694e82
commit
124fa2c601
@ -1075,9 +1075,12 @@ static int link_acquire_conf(Link *link) {
|
||||
log_debug_link(link, "acquiring IPv4 link-local address");
|
||||
|
||||
r = sd_ipv4ll_start(link->ipv4ll);
|
||||
if (r < 0)
|
||||
if (r < 0) {
|
||||
log_warning_link(link, "could not acquire IPv4 "
|
||||
"link-local address");
|
||||
return r;
|
||||
}
|
||||
}
|
||||
|
||||
if (link->network->dhcp) {
|
||||
assert(link->dhcp_client);
|
||||
@ -1085,9 +1088,12 @@ static int link_acquire_conf(Link *link) {
|
||||
log_debug_link(link, "acquiring DHCPv4 lease");
|
||||
|
||||
r = sd_dhcp_client_start(link->dhcp_client);
|
||||
if (r < 0)
|
||||
if (r < 0) {
|
||||
log_warning_link(link, "could not acquire DHCPv4 "
|
||||
"lease");
|
||||
return r;
|
||||
}
|
||||
}
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user