[network-manager-iodine] Log connection information at message level
- From: Guido GÃnther <guidog src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [network-manager-iodine] Log connection information at message level
- Date: Wed, 18 Apr 2012 07:20:56 +0000 (UTC)
commit e810764783d44047e9d79e525c850fcd35f41c32
Author: Guido GÃnther <agx sigxcpu org>
Date: Wed Apr 18 09:19:47 2012 +0200
Log connection information at message level
since this is important for debugging connection problems.
src/nm-iodine-service.c | 18 +++++++++---------
1 files changed, 9 insertions(+), 9 deletions(-)
---
diff --git a/src/nm-iodine-service.c b/src/nm-iodine-service.c
index 1d6b9ae..b55ca2d 100644
--- a/src/nm-iodine-service.c
+++ b/src/nm-iodine-service.c
@@ -282,7 +282,7 @@ iodine_parse_stderr_line (NMVPNPlugin *plugin,
gint ret = 1;
if (g_str_has_prefix(line, "Bad password")) {
- g_debug ("Login failure");
+ g_message ("Login failure");
priv->failure = NM_VPN_PLUGIN_FAILURE_LOGIN_FAILED;
ret = -1;
goto out;
@@ -294,7 +294,7 @@ iodine_parse_stderr_line (NMVPNPlugin *plugin,
goto out;
if (g_str_has_prefix(line, "Server tunnel IP is ")) {
- g_debug("PTP address: %s", split[len-1]);
+ g_message("PTP address: %s", split[len-1]);
val = addr_to_gvalue (split[len-1]);
if (val)
g_hash_table_insert (ip4config,
@@ -306,7 +306,7 @@ iodine_parse_stderr_line (NMVPNPlugin *plugin,
NM_VPN_PLUGIN_IP4_CONFIG_INT_GATEWAY,
val);
} else if (g_str_has_prefix(line, "Sending DNS queries for ")) {
- g_debug("External gw: %s", split[len-1]);
+ g_message("External gw: %s", split[len-1]);
val = addr_to_gvalue (split[len-1]);
if (val)
g_hash_table_insert (ip4config,
@@ -315,28 +315,28 @@ iodine_parse_stderr_line (NMVPNPlugin *plugin,
} else if (g_str_has_prefix(line, "Sending raw traffic directly to ")) {
/* If the DNS server is directly reachable we need to set it
as external gateway overwriting the above valus */
- g_debug("Overwrite ext. gw. address: %s", split[len-1]);
+ g_message("Overwrite ext. gw. address: %s", split[len-1]);
val = addr_to_gvalue (split[len-1]);
if (val)
g_hash_table_insert (ip4config,
NM_VPN_PLUGIN_IP4_CONFIG_EXT_GATEWAY,
val);
} else if (g_str_has_prefix(line, "Setting IP of dns")) {
- g_debug("Address: %s", split[len-1]);
+ g_message("Address: %s", split[len-1]);
val = addr_to_gvalue (split[len-1]);
if (val)
g_hash_table_insert (ip4config,
NM_VPN_PLUGIN_IP4_CONFIG_ADDRESS,
val);
} else if (g_str_has_prefix(line, "Setting MTU of ")) {
- g_debug("MTU: %s", split[len-1]);
+ g_message("MTU: %s", split[len-1]);
val = addr_to_gvalue (split[len-1]);
if (val)
g_hash_table_insert (ip4config,
NM_VPN_PLUGIN_IP4_CONFIG_MTU,
val);
} else if (g_str_has_prefix(line, "Opened dns")) {
- g_debug("Interface: %s", split[len-1]);
+ g_message("Interface: %s", split[len-1]);
val = str_to_gvalue (split[len-1], FALSE);
if (val)
g_hash_table_insert (ip4config,
@@ -351,7 +351,7 @@ iodine_parse_stderr_line (NMVPNPlugin *plugin,
val);
ret = 0; /* success */
} else
- g_debug("%s", line);
+ g_message("%s", line);
out:
g_strfreev(split);
@@ -380,7 +380,7 @@ iodine_stderr_cb (GIOChannel *source, GIOCondition condition, gpointer plugin)
ret = iodine_parse_stderr_line(plugin, line, priv->ip4config);
if (!ret) {
- g_debug("Parsing done, sending IP4 config");
+ g_message("Parsing done, sending IP4 config");
nm_vpn_plugin_set_ip4_config(plugin, priv->ip4config);
g_hash_table_destroy (priv->ip4config);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]