mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-02-21 05:10:34 +01:00
device: suppress info logging about internal device plugins
Internal device plugins are compiled-in. In fact, none of the internal device plugins can currently be disabled via compile time options. The user would have to patch the sources to not include a particular device plugin. Hence, the available device plugins depends exclusively on the build itself. That is not worth <info> level logging. Especially, as it was quite verbose, logging 13 lines.
This commit is contained in:
parent
3798f98829
commit
dff157b867
1 changed files with 7 additions and 2 deletions
|
|
@ -316,7 +316,12 @@ _add_factory (NMDeviceFactory *factory,
|
|||
|
||||
callback (factory, user_data);
|
||||
|
||||
nm_log_info (LOGD_PLATFORM, "Loaded device plugin: %s (%s)", G_OBJECT_TYPE_NAME (factory), path);
|
||||
nm_log (path ? LOGL_INFO : LOGL_DEBUG,
|
||||
LOGD_PLATFORM,
|
||||
NULL, NULL,
|
||||
"Loaded device plugin: %s (%s)",
|
||||
G_OBJECT_TYPE_NAME (factory),
|
||||
path ?: "internal");
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
|
|
@ -328,7 +333,7 @@ _load_internal_factory (GType factory_gtype,
|
|||
NMDeviceFactory *factory;
|
||||
|
||||
factory = (NMDeviceFactory *) g_object_new (factory_gtype, NULL);
|
||||
_add_factory (factory, "internal", callback, user_data);
|
||||
_add_factory (factory, NULL, callback, user_data);
|
||||
}
|
||||
|
||||
static void
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue