mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-06-19 05:28:33 +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.
This commit is contained in:
parent
58a2e99294
commit
ebc387638a
1 changed files with 6 additions and 2 deletions
|
|
@ -1167,8 +1167,12 @@ scan_request_cb (GDBusProxy *proxy, GAsyncResult *result, gpointer user_data)
|
|||
return;
|
||||
|
||||
if (error) {
|
||||
g_dbus_error_strip_remote_error (error);
|
||||
nm_log_warn (LOGD_SUPPLICANT, "Could not get scan request result: %s", error->message);
|
||||
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