[network-manager-vpnc/NETWORKMANAGER_0_7] core: add some debug options
- From: Dan Williams <dcbw src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [network-manager-vpnc/NETWORKMANAGER_0_7] core: add some debug options
- Date: Fri, 6 Nov 2009 06:46:02 +0000 (UTC)
commit 6d18edfe106109dd8e1867b136904606268fa9a8
Author: Dan Williams <dcbw redhat com>
Date: Fri Oct 30 15:43:07 2009 -0700
core: add some debug options
src/nm-vpnc-service.c | 6 ++++++
1 files changed, 6 insertions(+), 0 deletions(-)
---
diff --git a/src/nm-vpnc-service.c b/src/nm-vpnc-service.c
index 06b98a8..18dc112 100644
--- a/src/nm-vpnc-service.c
+++ b/src/nm-vpnc-service.c
@@ -407,6 +407,9 @@ nm_vpnc_config_write (gint vpnc_fd,
default_username = nm_setting_vpn_get_user_name (s_vpn);
+ if (getenv ("VPNC_DEBUG"))
+ write_config_option (vpnc_fd, "Debug 3\n");
+
write_config_option (vpnc_fd, "Script " NM_VPNC_HELPER_PATH "\n");
write_config_option (vpnc_fd,
@@ -473,6 +476,9 @@ real_connect (NMVPNPlugin *plugin,
if (vpnc_fd < 0)
goto out;
+ if (getenv ("NM_VPNC_DUMP_CONNECTION"))
+ nm_connection_dump (connection);
+
if (!nm_vpnc_config_write (vpnc_fd, s_vpn, error))
goto out;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]