aboutsummaryrefslogtreecommitdiff
path: root/src/cadet
diff options
context:
space:
mode:
authorBart Polot <bart@net.in.tum.de>2015-10-02 03:37:29 +0000
committerBart Polot <bart@net.in.tum.de>2015-10-02 03:37:29 +0000
commitb6be25b85e6f767fc88c4ed0b86c48f83c54dc14 (patch)
treecb39497d3729d1668328f46a4dd02dacca3e910c /src/cadet
parent56c021a3748c30b93e4ac3a03b6dc685400960d4 (diff)
downloadgnunet-b6be25b85e6f767fc88c4ed0b86c48f83c54dc14.tar.gz
gnunet-b6be25b85e6f767fc88c4ed0b86c48f83c54dc14.zip
- reduce log level
Diffstat (limited to 'src/cadet')
-rw-r--r--src/cadet/gnunet-service-cadet_local.c15
1 files changed, 7 insertions, 8 deletions
diff --git a/src/cadet/gnunet-service-cadet_local.c b/src/cadet/gnunet-service-cadet_local.c
index f755b8813..4c644185e 100644
--- a/src/cadet/gnunet-service-cadet_local.c
+++ b/src/cadet/gnunet-service-cadet_local.c
@@ -201,7 +201,7 @@ channel_destroy_iterator (void *cls,
201static void 201static void
202client_destroy (struct CadetClient *c) 202client_destroy (struct CadetClient *c)
203{ 203{
204 LOG (GNUNET_ERROR_TYPE_INFO, " client destroy: %p/%u\n", c, c->id); 204 LOG (GNUNET_ERROR_TYPE_DEBUG, " client destroy: %p/%u\n", c, c->id);
205 GNUNET_SERVER_client_drop (c->handle); 205 GNUNET_SERVER_client_drop (c->handle);
206 c->shutting_down = GNUNET_YES; 206 c->shutting_down = GNUNET_YES;
207 207
@@ -255,7 +255,7 @@ client_new (struct GNUNET_SERVER_Client *client)
255 GNUNET_CONTAINER_DLL_insert (clients_head, clients_tail, c); 255 GNUNET_CONTAINER_DLL_insert (clients_head, clients_tail, c);
256 GNUNET_STATISTICS_update (stats, "# clients", +1, GNUNET_NO); 256 GNUNET_STATISTICS_update (stats, "# clients", +1, GNUNET_NO);
257 257
258 LOG (GNUNET_ERROR_TYPE_INFO, " client created: %p/%u\n", c, c->id); 258 LOG (GNUNET_ERROR_TYPE_DEBUG, " client created: %p/%u\n", c, c->id);
259 259
260 return c; 260 return c;
261} 261}
@@ -274,7 +274,7 @@ client_new (struct GNUNET_SERVER_Client *client)
274static void 274static void
275handle_client_connect (void *cls, struct GNUNET_SERVER_Client *client) 275handle_client_connect (void *cls, struct GNUNET_SERVER_Client *client)
276{ 276{
277 LOG (GNUNET_ERROR_TYPE_INFO, "Client connected: %p\n", client); 277 LOG (GNUNET_ERROR_TYPE_DEBUG, "Client connected: %p\n", client);
278 if (NULL == client) 278 if (NULL == client)
279 return; 279 return;
280 280
@@ -294,7 +294,7 @@ handle_client_disconnect (void *cls, struct GNUNET_SERVER_Client *client)
294{ 294{
295 struct CadetClient *c; 295 struct CadetClient *c;
296 296
297 LOG (GNUNET_ERROR_TYPE_INFO, "Client disconnected: %p\n", client); 297 LOG (GNUNET_ERROR_TYPE_DEBUG, "Client disconnected: %p\n", client);
298 298
299 c = GML_client_get (client); 299 c = GML_client_get (client);
300 if (NULL != c) 300 if (NULL != c)
@@ -328,8 +328,7 @@ handle_new_client (void *cls, struct GNUNET_SERVER_Client *client,
328 uint32_t *p; 328 uint32_t *p;
329 unsigned int i; 329 unsigned int i;
330 330
331 LOG (GNUNET_ERROR_TYPE_DEBUG, "\n"); 331 LOG (GNUNET_ERROR_TYPE_DEBUG, "new client registering %p\n", client);
332 LOG (GNUNET_ERROR_TYPE_INFO, "new client registering %p\n", client);
333 332
334 /* Check data sanity */ 333 /* Check data sanity */
335 size = ntohs (message->size); 334 size = ntohs (message->size);
@@ -358,7 +357,7 @@ handle_new_client (void *cls, struct GNUNET_SERVER_Client *client,
358 return; 357 return;
359 } 358 }
360 359
361 LOG (GNUNET_ERROR_TYPE_INFO, " client %u has %u ports\n", c-> id, size); 360 LOG (GNUNET_ERROR_TYPE_DEBUG, " client %u has %u ports\n", c-> id, size);
362 if (size > 0) 361 if (size > 0)
363 { 362 {
364 uint32_t u32; 363 uint32_t u32;
@@ -368,7 +367,7 @@ handle_new_client (void *cls, struct GNUNET_SERVER_Client *client,
368 for (i = 0; i < size; i++) 367 for (i = 0; i < size; i++)
369 { 368 {
370 u32 = ntohl (p[i]); 369 u32 = ntohl (p[i]);
371 LOG (GNUNET_ERROR_TYPE_INFO, " port: %u\n", u32); 370 LOG (GNUNET_ERROR_TYPE_DEBUG, " port: %u\n", u32);
372 371
373 /* store in client's hashmap */ 372 /* store in client's hashmap */
374 GNUNET_CONTAINER_multihashmap32_put (c->ports, u32, c, 373 GNUNET_CONTAINER_multihashmap32_put (c->ports, u32, c,