dbg-only
[oweals/gnunet.git] / src / core / test_core_api_reliability.c
index a88c05f43df395c5572252a8f63f7d7ef7d2b64c..9fbaedf72aba34f0373089847281c3f3bfd3a328 100644 (file)
@@ -35,7 +35,7 @@
 #include "gnunet_scheduler_lib.h"
 #include "gnunet_transport_service.h"
 
-#define VERBOSE GNUNET_YES
+#define VERBOSE GNUNET_NO
 
 #define START_ARM GNUNET_YES
 
@@ -63,7 +63,7 @@ static struct GNUNET_TIME_Absolute start_time;
  * 'MAX_PENDING' in 'gnunet-service-transport.c', otherwise
  * messages may be dropped even for a reliable transport.
  */
-#define TOTAL_MSGS (60000 * 2)
+#define TOTAL_MSGS (600 * 2)
 
 struct PeerContext
 {
@@ -180,8 +180,10 @@ inbound_notify (void *cls,
                struct GNUNET_TIME_Relative latency,
                uint32_t distance)
 {
+#if VERBOSE
   GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
               "Core provides inbound data from `%4s'.\n", GNUNET_i2s (other));
+#endif
   return GNUNET_OK;
 }
 
@@ -193,9 +195,11 @@ outbound_notify (void *cls,
                 struct GNUNET_TIME_Relative latency,
                 uint32_t distance)
 {
+#if VERBOSE
   GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
               "Core notifies about outbound data for `%4s'.\n",
               GNUNET_i2s (other));
+#endif
   return GNUNET_OK;
 }