core: additional connectivity checking debug messages

This commit is contained in:
Dan Williams 2011-12-15 10:13:31 -06:00
parent 5937861ca7
commit 330eb2f74b
2 changed files with 6 additions and 3 deletions

View file

@ -112,8 +112,8 @@ nm_connectivity_check_cb (SoupSession *session, SoupMessage *msg, gpointer user_
uri_string, priv->response);
connected_new = TRUE;
} else {
nm_log_dbg (LOGD_CORE, "Connectivity check for uri '%s' with expected response '%s' failed.",
uri_string, priv->response);
nm_log_dbg (LOGD_CORE, "Connectivity check for uri '%s' with expected response '%s' failed (status %d).",
uri_string, priv->response, msg->status_code);
}
}
g_free (uri_string);

View file

@ -493,10 +493,13 @@ manager_device_state_changed (NMDevice *device,
/* Still connected, but a device activated or deactivated; make sure
* we still have connectivity on the other activated devices.
*/
nm_log_dbg (LOGD_CORE, "(%s): triggered connectivity check due to state change",
nm_device_get_iface (device));
nm_connectivity_start_check (priv->connectivity);
}
} else {
/* Cannot be connected if no devices are activated */
nm_log_dbg (LOGD_CORE, "stopping connectivity checks");
nm_connectivity_stop_check (priv->connectivity);
}
#endif
@ -3378,7 +3381,7 @@ connectivity_changed (NMConnectivity *connectivity,
gboolean connected;
connected = nm_connectivity_get_connected (connectivity);
nm_log_dbg (LOGD_CORE, "connectivity indicates %s",
nm_log_dbg (LOGD_CORE, "connectivity checking indicates %s",
connected ? "CONNECTED" : "NOT CONNECTED");
nm_manager_update_state (self);