[network-manager-applet/th/vpn-service-info-bgo767197: 1/8] c-e: log info message when successfully loading VPN plugin



commit 0a290f990d0f7e743bbe13a284bfd4ce8cc52040
Author: Thomas Haller <thaller redhat com>
Date:   Wed Jun 8 02:08:30 2016 +0200

    c-e: log info message when successfully loading VPN plugin
    
    g_info() is disabled unless setting G_MESSAGES_DEBUG=all.

 src/connection-editor/vpn-helpers.c |    7 +++++--
 1 files changed, 5 insertions(+), 2 deletions(-)
---
diff --git a/src/connection-editor/vpn-helpers.c b/src/connection-editor/vpn-helpers.c
index 35823c7..0fd3f98 100644
--- a/src/connection-editor/vpn-helpers.c
+++ b/src/connection-editor/vpn-helpers.c
@@ -64,9 +64,12 @@ vpn_get_plugins (void)
 
                /* load the editor plugin, and preserve only those NMVpnPluginInfo that can
                 * successfully load the plugin. */
-               if (nm_vpn_plugin_info_load_editor_plugin (plugin_info, &error))
+               if (nm_vpn_plugin_info_load_editor_plugin (plugin_info, &error)) {
                        plugins = g_slist_prepend (plugins, plugin_info);
-               else {
+                       g_info ("vpn: (%s,%s) loaded",
+                               nm_vpn_plugin_info_get_name (plugin_info),
+                               nm_vpn_plugin_info_get_filename (plugin_info));
+               } else {
                        if (   !nm_vpn_plugin_info_get_plugin (plugin_info)
                            && nm_vpn_plugin_info_lookup_property (plugin_info, 
NM_VPN_PLUGIN_INFO_KF_GROUP_GNOME, "properties")) {
                                g_message ("vpn: (%s,%s) cannot load legacy-only plugin",


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]