#include "escape.h"
#include "alloc-util.h"
#include "dhcp-client-internal.h"
+#include "errno-util.h"
#include "hostname-setup.h"
#include "hostname-util.h"
#include "parse-util.h"
if (link->network->dhcp_send_release) {
r = sd_dhcp_client_send_release(client);
if (r < 0)
- log_link_warning_errno(link, r, "Failed to send DHCP RELEASE, ignoring: %m");
+ log_link_full_errno(link,
+ ERRNO_IS_DISCONNECT(r) ? LOG_DEBUG : LOG_WARNING,
+ r, "Failed to send DHCP RELEASE, ignoring: %m");
}
r = dhcp_lease_lost(link);