From: Christian Grothoff Date: Tue, 9 Feb 2010 20:18:04 +0000 (+0000) Subject: debug stuff X-Git-Tag: initial-import-from-subversion-38251~22755 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=386b2b80afcdf906a38c06e96bfea2d5bd70d0c9;p=oweals%2Fgnunet.git debug stuff --- diff --git a/src/arm/arm.h b/src/arm/arm.h index 562113068..2f107351c 100644 --- a/src/arm/arm.h +++ b/src/arm/arm.h @@ -31,6 +31,6 @@ * This option will turn on the DEBUG loglevel for * all processes controlled by this ARM! */ -#define DEBUG_ARM GNUNET_NO +#define DEBUG_ARM GNUNET_YES #endif diff --git a/src/arm/gnunet-service-arm.c b/src/arm/gnunet-service-arm.c index 7a217b482..8b9138044 100644 --- a/src/arm/gnunet-service-arm.c +++ b/src/arm/gnunet-service-arm.c @@ -240,6 +240,11 @@ write_result (void *cls, size_t size, void *buf) _("Could not send status result to client\n")); return 0; /* error, not much we can do */ } +#if DEBUG_ARM + GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, + "Sending status response %u to client\n", + (unsigned int) *res); +#endif GNUNET_assert (size >= sizeof (struct GNUNET_MessageHeader)); msg = buf; msg->size = htons (sizeof (struct GNUNET_MessageHeader)); @@ -856,6 +861,7 @@ maint_child_death (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc) prev = pos; continue; } + if (statusType == GNUNET_OS_PROCESS_EXITED) { statstr = _( /* process termination method */ "exit"); diff --git a/src/arm/test_arm_api_data.conf b/src/arm/test_arm_api_data.conf index bdacfd476..11c5e2685 100644 --- a/src/arm/test_arm_api_data.conf +++ b/src/arm/test_arm_api_data.conf @@ -7,7 +7,7 @@ PORT = 23354 DEFAULTSERVICES = BINARY = gnunet-service-arm OPTIONS = -L ERROR -#DEBUG = YES +DEBUG = YES [resolver] #DEBUG = YES diff --git a/src/arm/test_exponential_backoff.c b/src/arm/test_exponential_backoff.c index 8f7017b77..92391ea40 100644 --- a/src/arm/test_exponential_backoff.c +++ b/src/arm/test_exponential_backoff.c @@ -27,7 +27,7 @@ #include "gnunet_configuration_lib.h" #include "gnunet_program_lib.h" -#define VERBOSE GNUNET_NO +#define VERBOSE GNUNET_YES #define START_ARM GNUNET_YES #define TIMEOUT GNUNET_TIME_relative_multiply (GNUNET_TIME_UNIT_SECONDS, 10) #define SERVICE_TEST_TIMEOUT GNUNET_TIME_UNIT_FOREVER_REL