aboutsummaryrefslogtreecommitdiff
path: root/src/transport/plugin_transport_tcp.c
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2015-06-07 17:55:39 +0000
committerChristian Grothoff <christian@grothoff.org>2015-06-07 17:55:39 +0000
commit8fc6aab8c74124130c95d58192072a7eba59028c (patch)
treec0c0fa21d0c0cfe441c20cbc60ccdaaa0b3853da /src/transport/plugin_transport_tcp.c
parent9c9d95dc931d6fb083b229c45bbe49eef6e60791 (diff)
downloadgnunet-8fc6aab8c74124130c95d58192072a7eba59028c.tar.gz
gnunet-8fc6aab8c74124130c95d58192072a7eba59028c.zip
-nicer logging
Diffstat (limited to 'src/transport/plugin_transport_tcp.c')
-rw-r--r--src/transport/plugin_transport_tcp.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/transport/plugin_transport_tcp.c b/src/transport/plugin_transport_tcp.c
index 531a81681..7ff26d6eb 100644
--- a/src/transport/plugin_transport_tcp.c
+++ b/src/transport/plugin_transport_tcp.c
@@ -1887,6 +1887,9 @@ append_port (void *cls,
1887 struct Plugin *plugin = ppc->plugin; 1887 struct Plugin *plugin = ppc->plugin;
1888 char *ret; 1888 char *ret;
1889 1889
1890 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
1891 "append_port called with hostname `%s'\n",
1892 hostname);
1890 if (NULL == hostname) 1893 if (NULL == hostname)
1891 { 1894 {
1892 /* Final call, done */ 1895 /* Final call, done */
@@ -1982,6 +1985,9 @@ tcp_plugin_address_pretty_printer (void *cls,
1982 else 1985 else
1983 { 1986 {
1984 /* invalid address */ 1987 /* invalid address */
1988 LOG (GNUNET_ERROR_TYPE_WARNING,
1989 _("Unexpected address length: %u bytes\n"),
1990 (unsigned int) addrlen);
1985 asc (asc_cls, NULL, GNUNET_SYSERR); 1991 asc (asc_cls, NULL, GNUNET_SYSERR);
1986 asc (asc_cls, NULL, GNUNET_OK); 1992 asc (asc_cls, NULL, GNUNET_OK);
1987 return; 1993 return;
@@ -1996,6 +2002,8 @@ tcp_plugin_address_pretty_printer (void *cls,
1996 ppc->asc_cls = asc_cls; 2002 ppc->asc_cls = asc_cls;
1997 ppc->port = port; 2003 ppc->port = port;
1998 ppc->options = options; 2004 ppc->options = options;
2005 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
2006 "Starting DNS reverse lookup\n");
1999 ppc->resolver_handle = GNUNET_RESOLVER_hostname_get (sb, 2007 ppc->resolver_handle = GNUNET_RESOLVER_hostname_get (sb,
2000 sbs, 2008 sbs,
2001 ! numeric, 2009 ! numeric,