From dff157b867ee63a3555eb4b5a00f14010d4d9755 Mon Sep 17 00:00:00 2001 From: Thomas Haller Date: Wed, 20 Jun 2018 16:12:58 +0200 Subject: [PATCH] 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 level logging. Especially, as it was quite verbose, logging 13 lines. --- src/devices/nm-device-factory.c | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/src/devices/nm-device-factory.c b/src/devices/nm-device-factory.c index 22c81a31cf..45fb8e705a 100644 --- a/src/devices/nm-device-factory.c +++ b/src/devices/nm-device-factory.c @@ -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