asserts
[oweals/gnunet.git] / src / util / test_common_logging.c
index eb337aac4c1840e71a7206d3587fbb3773f5ff16..e3209082bfcf3a9616bd04f4cf5b86cccb7775d4 100644 (file)
@@ -42,8 +42,7 @@ main (int argc, char *argv[])
   unsigned int failureCount = 0;
   unsigned int logs = 0;
 
-  fclose (stderr);
-  stderr = NULL;
+  GNUNET_log_setup ("test-common-logging", "DEBUG", "/dev/null");
   GNUNET_logger_add (&my_log, &logs);
   GNUNET_logger_add (&my_log, &logs);
   GNUNET_log (GNUNET_ERROR_TYPE_BULK, "Testing...\n");