#include "gnunet_common.h"
static void
-my_log (void *ctx, enum GNUNET_ErrorType kind,
- const char *component, const char *date, const char *msg)
+my_log (void *ctx, enum GNUNET_ErrorType kind, const char *component,
+ const char *date, const char *msg)
{
unsigned int *c = ctx;
unsigned int failureCount = 0;
unsigned int logs = 0;
+ if (0 != putenv ("GNUNET_FORCE_LOG="))
+ fprintf (stderr, "Failed to putenv: %s\n", strerror (errno));
GNUNET_log_setup ("test-common-logging", "DEBUG", "/dev/null");
GNUNET_logger_add (&my_log, &logs);
GNUNET_logger_add (&my_log, &logs);