[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] r17968 - gnunet/src/mesh
From: |
gnunet |
Subject: |
[GNUnet-SVN] r17968 - gnunet/src/mesh |
Date: |
Thu, 3 Nov 2011 16:24:09 +0100 |
Author: bartpolot
Date: 2011-11-03 16:24:09 +0100 (Thu, 03 Nov 2011)
New Revision: 17968
Modified:
gnunet/src/mesh/gnunet-service-mesh.c
Log:
Disable DHT debug of MESH separately
Modified: gnunet/src/mesh/gnunet-service-mesh.c
===================================================================
--- gnunet/src/mesh/gnunet-service-mesh.c 2011-11-03 15:24:08 UTC (rev
17967)
+++ gnunet/src/mesh/gnunet-service-mesh.c 2011-11-03 15:24:09 UTC (rev
17968)
@@ -69,6 +69,8 @@
GNUNET_TIME_UNIT_SECONDS,\
2)
+#define MESH_DEBUG_DHT GNUNET_NO
+
/******************************************************************************/
/************************ DATA STRUCTURES
****************************/
/******************************************************************************/
@@ -578,13 +580,17 @@
announce_applications_task = GNUNET_SCHEDULER_NO_TASK;
return;
}
+#if MESH_DEBUG_DHT
GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "MESH: Starting PUT for apps\n");
+#endif
GNUNET_CONTAINER_multihashmap_iterate (applications, &announce_application,
NULL);
announce_applications_task =
GNUNET_SCHEDULER_add_delayed (APP_ANNOUNCE_TIME, &announce_applications,
cls);
+#if MESH_DEBUG_DHT
GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "MESH: Finished PUT for apps\n");
+#endif
return;
}
@@ -607,8 +613,10 @@
* - Set data expiration in function of X
* - Adapt X to churn
*/
+#if MESH_DEBUG_DHT
GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "MESH: DHT_put for ID %s started.\n",
GNUNET_i2s (&my_full_id));
+#endif
GNUNET_DHT_put (dht_handle, /* DHT handle */
&my_full_id.hashPubKey, /* Key to use */
10U, /* Replication level */
@@ -619,7 +627,7 @@
(char *)&my_full_id, /* Data itself */
GNUNET_TIME_absolute_get_forever (), /* Data expiration */
GNUNET_TIME_UNIT_FOREVER_REL, /* Retry time */
-#if MESH_DEBUG
+#if MESH_DEBUG_DHT
&mesh_debug, "DHT_put for id completed");
#else
NULL, /* Continuation */
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [GNUnet-SVN] r17968 - gnunet/src/mesh,
gnunet <=