diff options
Diffstat (limited to 'src/arm/test_exponential_backoff.c')
-rw-r--r-- | src/arm/test_exponential_backoff.c | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/src/arm/test_exponential_backoff.c b/src/arm/test_exponential_backoff.c index 1709dbdba..34ebad164 100644 --- a/src/arm/test_exponential_backoff.c +++ b/src/arm/test_exponential_backoff.c | |||
@@ -28,8 +28,6 @@ | |||
28 | #include "gnunet_program_lib.h" | 28 | #include "gnunet_program_lib.h" |
29 | #include "gnunet_protocols.h" | 29 | #include "gnunet_protocols.h" |
30 | 30 | ||
31 | #define VERBOSE GNUNET_NO | ||
32 | |||
33 | #define START_ARM GNUNET_YES | 31 | #define START_ARM GNUNET_YES |
34 | 32 | ||
35 | #define LOG_BACKOFF GNUNET_NO | 33 | #define LOG_BACKOFF GNUNET_NO |
@@ -115,9 +113,7 @@ service_shutdown_handler (void *cls, const struct GNUNET_MessageHeader *msg) | |||
115 | 113 | ||
116 | if (msg == NULL) | 114 | if (msg == NULL) |
117 | { | 115 | { |
118 | #if VERBOSE | ||
119 | GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "Service shutdown complete.\n"); | 116 | GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "Service shutdown complete.\n"); |
120 | #endif | ||
121 | if (shutdown_ctx->cont != NULL) | 117 | if (shutdown_ctx->cont != NULL) |
122 | shutdown_ctx->cont (shutdown_ctx->cont_cls, GNUNET_NO); | 118 | shutdown_ctx->cont (shutdown_ctx->cont_cls, GNUNET_NO); |
123 | 119 | ||
@@ -131,10 +127,8 @@ service_shutdown_handler (void *cls, const struct GNUNET_MessageHeader *msg) | |||
131 | switch (ntohs (msg->type)) | 127 | switch (ntohs (msg->type)) |
132 | { | 128 | { |
133 | case GNUNET_MESSAGE_TYPE_ARM_SHUTDOWN: | 129 | case GNUNET_MESSAGE_TYPE_ARM_SHUTDOWN: |
134 | #if VERBOSE | ||
135 | GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, | 130 | GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, |
136 | "Received confirmation for service shutdown.\n"); | 131 | "Received confirmation for service shutdown.\n"); |
137 | #endif | ||
138 | shutdown_ctx->confirmed = GNUNET_YES; | 132 | shutdown_ctx->confirmed = GNUNET_YES; |
139 | GNUNET_CLIENT_receive (shutdown_ctx->sock, | 133 | GNUNET_CLIENT_receive (shutdown_ctx->sock, |
140 | &service_shutdown_handler, shutdown_ctx, | 134 | &service_shutdown_handler, shutdown_ctx, |
@@ -379,9 +373,6 @@ check () | |||
379 | char *const argv[] = { | 373 | char *const argv[] = { |
380 | "test-exponential-backoff", | 374 | "test-exponential-backoff", |
381 | "-c", "test_arm_api_data.conf", | 375 | "-c", "test_arm_api_data.conf", |
382 | #if VERBOSE | ||
383 | "-L", "DEBUG", | ||
384 | #endif | ||
385 | NULL | 376 | NULL |
386 | }; | 377 | }; |
387 | struct GNUNET_GETOPT_CommandLineOption options[] = { | 378 | struct GNUNET_GETOPT_CommandLineOption options[] = { |
@@ -431,11 +422,7 @@ main (int argc, char *argv[]) | |||
431 | int ret; | 422 | int ret; |
432 | 423 | ||
433 | GNUNET_log_setup ("test-exponential-backoff", | 424 | GNUNET_log_setup ("test-exponential-backoff", |
434 | #if VERBOSE | ||
435 | "DEBUG", | ||
436 | #else | ||
437 | "WARNING", | 425 | "WARNING", |
438 | #endif | ||
439 | NULL); | 426 | NULL); |
440 | 427 | ||
441 | init (); | 428 | init (); |