mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-05-09 04:48:10 +02:00
core: downgrade warning logging message when creating virtual device
This can regularly happen when a virtual device depends on a parent/master that is not yet created. We will retry later when the parent is ready, so logging a warning about it is wrong and confusing.
This commit is contained in:
parent
0684632936
commit
ff06754fe8
1 changed files with 5 additions and 1 deletions
|
|
@ -1046,7 +1046,7 @@ system_create_virtual_device (NMManager *self, NMConnection *connection)
|
||||||
|
|
||||||
iface = nm_manager_get_connection_iface (self, connection, &parent, &error);
|
iface = nm_manager_get_connection_iface (self, connection, &parent, &error);
|
||||||
if (!iface) {
|
if (!iface) {
|
||||||
_LOGW (LOGD_DEVICE, "(%s) can't get a name of a virtual device: %s",
|
_LOGD (LOGD_DEVICE, "(%s) can't get a name of a virtual device: %s",
|
||||||
nm_connection_get_id (connection), error->message);
|
nm_connection_get_id (connection), error->message);
|
||||||
g_error_free (error);
|
g_error_free (error);
|
||||||
return NULL;
|
return NULL;
|
||||||
|
|
@ -1087,6 +1087,10 @@ system_create_virtual_device (NMManager *self, NMConnection *connection)
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
_LOGD (LOGD_DEVICE, "(%s) create virtual device %s",
|
||||||
|
nm_connection_get_id (connection),
|
||||||
|
nm_device_get_iface (device));
|
||||||
|
|
||||||
if (!add_device (self, device, &error)) {
|
if (!add_device (self, device, &error)) {
|
||||||
_LOGW (LOGD_DEVICE, "(%s) can't register the device with manager: %s",
|
_LOGW (LOGD_DEVICE, "(%s) can't register the device with manager: %s",
|
||||||
nm_connection_get_id (connection), error->message);
|
nm_connection_get_id (connection), error->message);
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue