diff options
author | Beniamino Galvani <bgalvani@redhat.com> | 2018-09-28 14:58:37 +0200 |
---|---|---|
committer | Beniamino Galvani <bgalvani@redhat.com> | 2018-10-15 14:05:23 +0200 |
commit | 54064144d4956eb127b2193a0be682760fc94a1e (patch) | |
tree | a24dc4cacc680598b88bf1aff6dcb3408f4aaaf9 | |
parent | 37274a16a16614fbce9a01448aa470844b4b44c3 (diff) | |
download | NetworkManager-54064144d4956eb127b2193a0be682760fc94a1e.tar.gz |
dhcp: log whether the client was active
It is useful to understand why the grace period was started.
-rw-r--r-- | src/devices/nm-device.c | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/src/devices/nm-device.c b/src/devices/nm-device.c index 0293e65158..8de4db55d8 100644 --- a/src/devices/nm-device.c +++ b/src/devices/nm-device.c @@ -7310,8 +7310,9 @@ dhcp4_fail (NMDevice *self) { NMDevicePrivate *priv = NM_DEVICE_GET_PRIVATE (self); - _LOGD (LOGD_DHCP4, "DHCPv4 failed (ip_state %s)", - _ip_state_to_string (priv->ip4_state)); + _LOGD (LOGD_DHCP4, "DHCPv4 failed (ip_state %s, was_active %d)", + _ip_state_to_string (priv->ip4_state), + priv->dhcp4.was_active); /* Keep client running if there are static addresses configured * on the interface. @@ -8063,8 +8064,9 @@ dhcp6_fail (NMDevice *self) NMDevicePrivate *priv = NM_DEVICE_GET_PRIVATE (self); gboolean is_dhcp_managed; - _LOGD (LOGD_DHCP6, "DHCPv6 failed (ip_state %s)", - _ip_state_to_string (priv->ip6_state)); + _LOGD (LOGD_DHCP6, "DHCPv6 failed (ip_state %s, was_active %d)", + _ip_state_to_string (priv->ip6_state), + priv->dhcp6.was_active); is_dhcp_managed = (priv->dhcp6.mode == NM_NDISC_DHCP_LEVEL_MANAGED); |