summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDan Williams <dcbw@redhat.com>2013-09-19 09:37:44 -0500
committerDan Williams <dcbw@redhat.com>2013-09-19 11:16:47 -0500
commit44ccf3454b2609637c0857740974b6525c288450 (patch)
tree8906b17a84cc9815b7c44a7b8bf6ac05e00ff6d9
parentf8c23077cc1b16a65309ae5b9594a499106550af (diff)
downloadNetworkManager-44ccf3454b2609637c0857740974b6525c288450.tar.gz
supplicant: suppress more bus activation failure errors
These are expected errors if the supplicant can't be launched for some reason. We should only log entirely unexpected errors like wrong method arguments or types, really odd failures, etc. NetworkManager[1312]: <error> [1379601146.148818] [supplicant-manager/nm-supplicant-interface.c:853] interface_add_cb(): (wlan0): error adding interface: Did not receive a reply. Possible causes include: the remote application did not send a reply, the message bus security policy blocked the reply, the reply timeout expired, or the network connection was broken. NetworkManager[1312]: <error> [1379601171.160742] [supplicant-manager/nm-supplicant-interface.c:853] interface_add_cb(): (wlan0): error adding interface: Activation of fi.w1.wpa_supplicant1 timed out
-rw-r--r--src/supplicant-manager/nm-supplicant-interface.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/supplicant-manager/nm-supplicant-interface.c b/src/supplicant-manager/nm-supplicant-interface.c
index ce02ecbb80..4063085c3b 100644
--- a/src/supplicant-manager/nm-supplicant-interface.c
+++ b/src/supplicant-manager/nm-supplicant-interface.c
@@ -840,8 +840,10 @@ interface_add_cb (DBusGProxy *proxy, DBusGProxyCall *call_id, gpointer user_data
|| g_error_matches (error, DBUS_GERROR, DBUS_GERROR_SPAWN_FORK_FAILED)
|| g_error_matches (error, DBUS_GERROR, DBUS_GERROR_SPAWN_FAILED)
|| g_error_matches (error, DBUS_GERROR, DBUS_GERROR_TIMEOUT)
+ || g_error_matches (error, DBUS_GERROR, DBUS_GERROR_NO_REPLY)
+ || g_error_matches (error, DBUS_GERROR, DBUS_GERROR_TIMED_OUT)
|| dbus_g_error_has_name (error, DBUS_ERROR_SPAWN_SERVICE_NOT_FOUND)) {
- /* Supplicant wasn't running and could be launched via service
+ /* Supplicant wasn't running and could not be launched via service
* activation. Wait for it to start by moving back to the INIT
* state.
*/