From 43be71f6a0131816ec2b3c568a23de976967dea1 Mon Sep 17 00:00:00 2001 From: Bart Polot Date: Mon, 16 Dec 2013 13:43:05 +0000 Subject: [PATCH] - log --- src/mesh/gnunet-service-mesh_connection.c | 3 ++- src/mesh/gnunet-service-mesh_tunnel.c | 2 ++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/src/mesh/gnunet-service-mesh_connection.c b/src/mesh/gnunet-service-mesh_connection.c index a76b7e9a6..52d5edeca 100644 --- a/src/mesh/gnunet-service-mesh_connection.c +++ b/src/mesh/gnunet-service-mesh_connection.c @@ -1742,7 +1742,7 @@ handle_mesh_kx (const struct GNUNET_PeerIdentity *peer, type = ntohs (msg->header.type); LOG (GNUNET_ERROR_TYPE_DEBUG, "\n\n"); LOG (GNUNET_ERROR_TYPE_DEBUG, "got a %s message from %s\n", - GM_m2s (type), GNUNET_i2s (peer)); + GM_m2s (type), GNUNET_i2s (peer)); /* Check connection */ c = connection_get (&msg->cid); @@ -1752,6 +1752,7 @@ handle_mesh_kx (const struct GNUNET_PeerIdentity *peer, LOG (GNUNET_ERROR_TYPE_DEBUG, "WARNING connection unknown\n"); return GNUNET_OK; } + LOG (GNUNET_ERROR_TYPE_DEBUG, " on connection %s\n", GMC_2s (c)); /* Check if origin is as expected */ neighbor = get_prev_hop (c); diff --git a/src/mesh/gnunet-service-mesh_tunnel.c b/src/mesh/gnunet-service-mesh_tunnel.c index 82ba4c636..1b916da02 100644 --- a/src/mesh/gnunet-service-mesh_tunnel.c +++ b/src/mesh/gnunet-service-mesh_tunnel.c @@ -871,6 +871,8 @@ send_kx (struct MeshTunnel3 *t, if (NULL == t->connection_head) { GNUNET_break (MESH_TUNNEL3_SEARCHING == t->cstate); + LOG (GNUNET_ERROR_TYPE_DEBUG, " tunnel %s connection state %s\n", + GMT_2s (t), cstate2s (t->cstate)); return; } -- 2.25.1