asserts
[oweals/gnunet.git] / src / util / test_common_logging.c
index 3d07661c239c93db482c55e49b624a75921dca68..e3209082bfcf3a9616bd04f4cf5b86cccb7775d4 100644 (file)
@@ -42,10 +42,7 @@ main (int argc, char *argv[])
   unsigned int failureCount = 0;
   unsigned int logs = 0;
 
-  fclose (stderr);
-#ifndef MINGW
-  stderr = NULL;
-#endif
+  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");