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:
Thomas Haller 2018-06-20 16:12:58 +02:00
parent 3798f98829
commit dff157b867

View file

@ -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