aboutsummaryrefslogtreecommitdiff
path: root/src/dht/test_dht_topo.c
diff options
context:
space:
mode:
authorBart Polot <bart@net.in.tum.de>2012-02-29 13:25:56 +0000
committerBart Polot <bart@net.in.tum.de>2012-02-29 13:25:56 +0000
commit46ba82641c0feb4b04ff489038543e576a0c78ee (patch)
tree92856034769bba9b136c14a87e13728c309035dc /src/dht/test_dht_topo.c
parent7f2e5199228c060cc58d1633fb9acb50a47cdb61 (diff)
downloadgnunet-46ba82641c0feb4b04ff489038543e576a0c78ee.tar.gz
gnunet-46ba82641c0feb4b04ff489038543e576a0c78ee.zip
- Adjusted logging level, testing parameters
Diffstat (limited to 'src/dht/test_dht_topo.c')
-rw-r--r--src/dht/test_dht_topo.c19
1 files changed, 6 insertions, 13 deletions
diff --git a/src/dht/test_dht_topo.c b/src/dht/test_dht_topo.c
index 81dc7cb85..cb0399da9 100644
--- a/src/dht/test_dht_topo.c
+++ b/src/dht/test_dht_topo.c
@@ -145,17 +145,12 @@ shutdown_callback (void *cls, const char *emsg)
145{ 145{
146 if (emsg != NULL) 146 if (emsg != NULL)
147 { 147 {
148#if VERBOSE 148 GNUNET_log (GNUNET_ERROR_TYPE_WARNING, "Shutdown of peers failed!\n");
149 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "Shutdown of peers failed!\n");
150#endif
151 ok++; 149 ok++;
152 } 150 }
153 else 151 else
154 { 152 {
155#if VERBOSE 153 GNUNET_log (GNUNET_ERROR_TYPE_INFO, "All peers successfully shut down!\n");
156 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
157 "All peers successfully shut down!\n");
158#endif
159 } 154 }
160 GNUNET_CONFIGURATION_destroy (testing_cfg); 155 GNUNET_CONFIGURATION_destroy (testing_cfg);
161} 156}
@@ -164,9 +159,7 @@ shutdown_callback (void *cls, const char *emsg)
164static void 159static void
165shutdown_task (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc) 160shutdown_task (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc)
166{ 161{
167#if VERBOSE 162 GNUNET_log (GNUNET_ERROR_TYPE_INFO, "Ending test.\n");
168 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "Ending test.\n");
169#endif
170 163
171 if (disconnect_task != GNUNET_SCHEDULER_NO_TASK) 164 if (disconnect_task != GNUNET_SCHEDULER_NO_TASK)
172 { 165 {
@@ -185,7 +178,7 @@ disconnect_peers (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc)
185{ 178{
186 unsigned int i; 179 unsigned int i;
187 180
188 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "disconnecting peers\n"); 181 GNUNET_log (GNUNET_ERROR_TYPE_INFO, "disconnecting peers\n");
189 disconnect_task = GNUNET_SCHEDULER_NO_TASK; 182 disconnect_task = GNUNET_SCHEDULER_NO_TASK;
190 GNUNET_SCHEDULER_cancel (put_task); 183 GNUNET_SCHEDULER_cancel (put_task);
191 if (NULL != get_h) 184 if (NULL != get_h)
@@ -313,7 +306,7 @@ do_test (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc)
313 { 306 {
314 GNUNET_assert (0); 307 GNUNET_assert (0);
315 } 308 }
316 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "test_task\ntest: from %s\n", 309 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "test_task\nfrom %s\n",
317 GNUNET_h2s_full (&o->id.hashPubKey)); 310 GNUNET_h2s_full (&o->id.hashPubKey));
318 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, " looking for %s\n", 311 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, " looking for %s\n",
319 GNUNET_h2s_full (&d->id.hashPubKey)); 312 GNUNET_h2s_full (&d->id.hashPubKey));
@@ -474,7 +467,7 @@ connect_cb (void *cls, const struct GNUNET_PeerIdentity *first,
474 } 467 }
475 else 468 else
476 { 469 {
477 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, 470 GNUNET_log (GNUNET_ERROR_TYPE_WARNING,
478 "Problem with new connection (%s)\n", emsg); 471 "Problem with new connection (%s)\n", emsg);
479 } 472 }
480 473