From 1c9a990d0f0f213f87957a9d43f36c425d2c916a Mon Sep 17 00:00:00 2001 From: Bart Polot Date: Mon, 31 Oct 2011 16:04:59 +0000 Subject: [PATCH] Extended logging --- src/mesh/test_mesh_small.c | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/src/mesh/test_mesh_small.c b/src/mesh/test_mesh_small.c index 1110a36f7..68fc9cc24 100644 --- a/src/mesh/test_mesh_small.c +++ b/src/mesh/test_mesh_small.c @@ -479,9 +479,15 @@ do_test (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc) GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "***************** test: test_task\n"); if (test == MULTICAST) { + GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, + "***************** test: add peer 3\n"); GNUNET_MESH_peer_request_connect_add(t, &d3->id); } + GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, + "***************** test: add peer 2\n"); GNUNET_MESH_peer_request_connect_add(t, &d2->id); + GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, + "***************** test: schedule timeout in 30s\n"); if (GNUNET_SCHEDULER_NO_TASK != disconnect_task) { GNUNET_SCHEDULER_cancel (disconnect_task); @@ -747,6 +753,12 @@ connect_cb (void *cls, const struct GNUNET_PeerIdentity *first, GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "***************** test: Problem with new connection (%s)\n", emsg); + GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, + "***************** test: (%s)\n", + GNUNET_i2s (first)); + GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, + "***************** test: (%s)\n", + GNUNET_i2s (second)); } } -- 2.25.1