mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-04-05 11:20:36 +02:00
supplicant: don't log a warning when scan request fails
This downgrades the following warning down to debug-level.
<warn> Could not get scan request result: GDBus.Error:fi.w1.wpa_supplicant1.Interface.ScanError: Scan request rejected
It seems this ~error~ happens regularly, so warning about it is overly
alarming.
(cherry picked from commit ebc387638a)
This commit is contained in:
parent
2b78a1d53b
commit
0cbe203d7c
1 changed files with 8 additions and 2 deletions
|
|
@ -1093,8 +1093,14 @@ scan_request_cb (GDBusProxy *proxy, GAsyncResult *result, gpointer user_data)
|
|||
if (g_error_matches (error, G_IO_ERROR, G_IO_ERROR_CANCELLED))
|
||||
return;
|
||||
|
||||
if (error)
|
||||
nm_log_warn (LOGD_SUPPLICANT, "Could not get scan request result: %s", error->message);
|
||||
if (error) {
|
||||
if (_nm_dbus_error_has_name (error, "fi.w1.wpa_supplicant1.Interface.ScanError"))
|
||||
nm_log_dbg (LOGD_SUPPLICANT, "Could not get scan request result: %s", error->message);
|
||||
else {
|
||||
g_dbus_error_strip_remote_error (error);
|
||||
nm_log_warn (LOGD_SUPPLICANT, "Could not get scan request result: %s", error->message);
|
||||
}
|
||||
}
|
||||
g_signal_emit (NM_SUPPLICANT_INTERFACE (user_data), signals[SCAN_DONE], 0, error ? FALSE : TRUE);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue