[network-manager-openvpn/rm-userset] core: print connection in NeedSecrets when debugging



commit 4a33b69de6eea8a9fc3e9064b9d8d6216c4d2b4f
Author: Dan Williams <dcbw redhat com>
Date:   Sat Feb 12 22:13:30 2011 -0600

    core: print connection in NeedSecrets when debugging

 src/nm-openvpn-service.c |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)
---
diff --git a/src/nm-openvpn-service.c b/src/nm-openvpn-service.c
index 95034b7..de4712b 100644
--- a/src/nm-openvpn-service.c
+++ b/src/nm-openvpn-service.c
@@ -1206,6 +1206,11 @@ real_need_secrets (NMVPNPlugin *plugin,
 	g_return_val_if_fail (NM_IS_VPN_PLUGIN (plugin), FALSE);
 	g_return_val_if_fail (NM_IS_CONNECTION (connection), FALSE);
 
+	if (debug) {
+		g_message ("%s: connection -------------------------------------", __func__);
+		nm_connection_dump (connection);
+	}
+
 	s_vpn = NM_SETTING_VPN (nm_connection_get_setting (connection, NM_TYPE_SETTING_VPN));
 	if (!s_vpn) {
 		g_set_error (error,



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