summaryrefslogtreecommitdiff
path: root/src/devices/nm-device.c
diff options
context:
space:
mode:
authorThomas Haller <thaller@redhat.com>2018-04-11 11:17:54 +0200
committerThomas Haller <thaller@redhat.com>2018-04-11 11:18:02 +0200
commit5a6fc10000d04c62a7c756a915f8e5ac4eecaae1 (patch)
tree59f5d8806cff267a19510f0e1c3db417a77716aa /src/devices/nm-device.c
parentf7127db8cf507d7c254fde1d09488bf419ddb46b (diff)
downloadNetworkManager-5a6fc10000d04c62a7c756a915f8e5ac4eecaae1.tar.gz
connectivity: improve logging of completed connectivity check in device
Diffstat (limited to 'src/devices/nm-device.c')
-rw-r--r--src/devices/nm-device.c12
1 files changed, 7 insertions, 5 deletions
diff --git a/src/devices/nm-device.c b/src/devices/nm-device.c
index cc3df54ae8..ab743705d2 100644
--- a/src/devices/nm-device.c
+++ b/src/devices/nm-device.c
@@ -2513,18 +2513,20 @@ concheck_cb (NMConnectivity *connectivity,
handle->c_handle = NULL;
self = g_object_ref (handle->self);
- _LOGT (LOGD_CONCHECK, "connectivity: complete check (seq:%llu, state:%s%s%s%s)",
- (long long unsigned) handle->seq,
- nm_connectivity_state_to_string (state),
- NM_PRINT_FMT_QUOTED (error, ", error: ", error->message, "", ""));
-
if (nm_utils_error_is_cancelled (error, FALSE)) {
/* the only place where we nm_connectivity_check_cancel(@c_handle), is
* from inside concheck_handle_event(). This is a recursive call,
* nothing to do. */
+ _LOGT (LOGD_CONCHECK, "connectivity: complete check (seq:%llu, obsoleted by later request returning)",
+ (long long unsigned) handle->seq);
return;
}
+ _LOGT (LOGD_CONCHECK, "connectivity: complete check (seq:%llu, state:%s%s%s%s)",
+ (long long unsigned) handle->seq,
+ nm_connectivity_state_to_string (state),
+ NM_PRINT_FMT_QUOTED (error, ", error: ", error->message, "", ""));
+
/* we keep NMConnectivity instance alive. It cannot be disposing. */
nm_assert (!nm_utils_error_is_cancelled (error, TRUE));