Changed logging for testcase
authorBart Polot <bart@net.in.tum.de>
Thu, 17 Nov 2011 15:11:25 +0000 (15:11 +0000)
committerBart Polot <bart@net.in.tum.de>
Thu, 17 Nov 2011 15:11:25 +0000 (15:11 +0000)
src/mesh/test_mesh_2dtorus.c

index 9b15e361307979927835c371d4aac6f731d95f2c..718ab0864cd9a74bbd27bc1878778f28f86d42e7 100644 (file)
@@ -103,19 +103,18 @@ shutdown_callback (void *cls, const char *emsg)
 {
   if (emsg != NULL)
   {
-#if VERBOSE
-    GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
-                "test: Shutdown of peers failed!\n");
-#endif
+    GNUNET_log (GNUNET_ERROR_TYPE_WARNING,
+                "test: Shutdown of peers failed! (%s)\n",
+                emsg);
     ok--;
   }
+#if VERBOSE
   else
   {
-#if VERBOSE
     GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
                 "test: All peers successfully shut down!\n");
-#endif
   }
+#endif
 }