summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMatthias Wachs <wachs@net.in.tum.de>2014-08-29 13:21:55 +0000
committerMatthias Wachs <wachs@net.in.tum.de>2014-08-29 13:21:55 +0000
commita9cfbe2b5f3f6f9eb5d748c687fb4981c384e131 (patch)
tree496c8f3897455403056677e20d4c90f43e9ef40e /src
parentacd9c601315de1e92103ed7626ffdc267dd3d7e2 (diff)
improve logging on cfg error
Diffstat (limited to 'src')
-rw-r--r--src/hostlist/gnunet-daemon-hostlist_server.c17
1 files changed, 13 insertions, 4 deletions
diff --git a/src/hostlist/gnunet-daemon-hostlist_server.c b/src/hostlist/gnunet-daemon-hostlist_server.c
index 95f735565..227c3bdcd 100644
--- a/src/hostlist/gnunet-daemon-hostlist_server.c
+++ b/src/hostlist/gnunet-daemon-hostlist_server.c
@@ -728,17 +728,26 @@ GNUNET_HOSTLIST_server_start (const struct GNUNET_CONFIGURATION_Handle *c,
if (GNUNET_CONFIGURATION_have_value (cfg, "HOSTLIST", "BINDTOIPV4"))
{
- GNUNET_break (GNUNET_OK ==
+ if (GNUNET_OK !=
GNUNET_CONFIGURATION_get_value_string (cfg, "HOSTLIST",
- "BINDTOIP", &ipv4));
+ "BINDTOIP", &ipv4))
+ {
+ GNUNET_log (GNUNET_ERROR_TYPE_WARNING,
+ _("BINDTOIP does not a valid IPv4 address! Ignoring BINDTOIPV4.\n"));
+ }
+
}
else
ipv4 = NULL;
if (GNUNET_CONFIGURATION_have_value (cfg, "HOSTLIST", "BINDTOIPV6"))
{
- GNUNET_break (GNUNET_OK ==
+ if (GNUNET_OK !=
GNUNET_CONFIGURATION_get_value_string (cfg, "HOSTLIST",
- "BINDTOIP", &ipv6));
+ "BINDTOIP", &ipv6))
+ {
+ GNUNET_log (GNUNET_ERROR_TYPE_WARNING,
+ _("BINDTOIP does not a valid IPv4 address! Ignoring BINDTOIPV6.\n"));
+ }
}
else
ipv6 = NULL;