aboutsummaryrefslogtreecommitdiff
path: root/src/mesh
diff options
context:
space:
mode:
authorBart Polot <bart@net.in.tum.de>2011-10-31 16:04:59 +0000
committerBart Polot <bart@net.in.tum.de>2011-10-31 16:04:59 +0000
commit1c9a990d0f0f213f87957a9d43f36c425d2c916a (patch)
treee92c13e7b399b7178055b040cce5e80bcec3eead /src/mesh
parentaaab0b3a2b87fe322482a68bcfa160506942b623 (diff)
downloadgnunet-1c9a990d0f0f213f87957a9d43f36c425d2c916a.tar.gz
gnunet-1c9a990d0f0f213f87957a9d43f36c425d2c916a.zip
Extended logging
Diffstat (limited to 'src/mesh')
-rw-r--r--src/mesh/test_mesh_small.c12
1 files changed, 12 insertions, 0 deletions
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)
479 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "***************** test: test_task\n"); 479 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "***************** test: test_task\n");
480 if (test == MULTICAST) 480 if (test == MULTICAST)
481 { 481 {
482 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
483 "***************** test: add peer 3\n");
482 GNUNET_MESH_peer_request_connect_add(t, &d3->id); 484 GNUNET_MESH_peer_request_connect_add(t, &d3->id);
483 } 485 }
486 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
487 "***************** test: add peer 2\n");
484 GNUNET_MESH_peer_request_connect_add(t, &d2->id); 488 GNUNET_MESH_peer_request_connect_add(t, &d2->id);
489 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
490 "***************** test: schedule timeout in 30s\n");
485 if (GNUNET_SCHEDULER_NO_TASK != disconnect_task) 491 if (GNUNET_SCHEDULER_NO_TASK != disconnect_task)
486 { 492 {
487 GNUNET_SCHEDULER_cancel (disconnect_task); 493 GNUNET_SCHEDULER_cancel (disconnect_task);
@@ -747,6 +753,12 @@ connect_cb (void *cls, const struct GNUNET_PeerIdentity *first,
747 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, 753 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
748 "***************** test: Problem with new connection (%s)\n", 754 "***************** test: Problem with new connection (%s)\n",
749 emsg); 755 emsg);
756 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
757 "***************** test: (%s)\n",
758 GNUNET_i2s (first));
759 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
760 "***************** test: (%s)\n",
761 GNUNET_i2s (second));
750 } 762 }
751 763
752} 764}