debug stuff
authorChristian Grothoff <christian@grothoff.org>
Tue, 9 Feb 2010 20:18:04 +0000 (20:18 +0000)
committerChristian Grothoff <christian@grothoff.org>
Tue, 9 Feb 2010 20:18:04 +0000 (20:18 +0000)
src/arm/arm.h
src/arm/gnunet-service-arm.c
src/arm/test_arm_api_data.conf
src/arm/test_exponential_backoff.c

index 562113068c3bd664803cc2b6e4622861d5ca1f72..2f107351cf5c22ab17db3ca5b0e6210bba9355ec 100644 (file)
@@ -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
index 7a217b48239646fdc544138acf3d6750e7460c2b..8b9138044f0b37d7e219ca7efa1cb45c88df873e 100644 (file)
@@ -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");
index bdacfd4761c18dd4490e7f6c06de3e047bde1b70..11c5e268579001aef16b6b2598c9c83f0ca0d493 100644 (file)
@@ -7,7 +7,7 @@ PORT = 23354
 DEFAULTSERVICES =
 BINARY = gnunet-service-arm
 OPTIONS = -L ERROR
-#DEBUG = YES
+DEBUG = YES
 
 [resolver]
 #DEBUG = YES
index 8f7017b77a2efe173bb30fecb54969c2120302fb..92391ea40d0b0c61a982d380fce4fcade565551f 100644 (file)
@@ -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