-fixes
authorMartin Schanzenbach <mschanzenbach@posteo.de>
Sat, 3 Mar 2012 15:10:02 +0000 (15:10 +0000)
committerMartin Schanzenbach <mschanzenbach@posteo.de>
Sat, 3 Mar 2012 15:10:02 +0000 (15:10 +0000)
src/gns/test_gns_dht_delegated_lookup.c
src/gns/test_gns_simple_delegated_lookup.c
src/gns/test_gns_simple_lookup.c

index 581a8f680a1b0e8d6482e618324cca4e8c629ebe..81619604856365f5ad77a74400528023408373bc 100644 (file)
@@ -100,6 +100,7 @@ shutdown_callback (void *cls, const char *emsg)
 {
   if (emsg != NULL)
   {
+    GNUNET_log (GNUNET_ERROR_TYPE_ERROR, "Error on shutdown! ret=%d\n", ok);
     if (ok == 0)
       ok = 2;
   }
@@ -125,6 +126,8 @@ finish_testing (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc)
 
   if (!he)
   {
+    GNUNET_log (GNUNET_ERROR_TYPE_ERROR,
+                "gethostbyname failed, rp_filtering?\n");
     ok = 2;
   }
   else
@@ -144,7 +147,7 @@ finish_testing (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc)
       }
       else
       {
-        GNUNET_log (GNUNET_ERROR_TYPE_INFO, "No resolution!\n");
+        GNUNET_log (GNUNET_ERROR_TYPE_ERROR, "No resolution!\n");
       }
     }
   }
@@ -175,7 +178,7 @@ end_badly_cont (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc)
 static void
 end_badly (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc)
 {
-  GNUNET_log (GNUNET_ERROR_TYPE_INFO, "Failing test with error: `%s'!\n",
+  GNUNET_log (GNUNET_ERROR_TYPE_ERROR, "Failing test with error: `%s'!\n",
               (char *) cls);
   GNUNET_SCHEDULER_add_now (&end_badly_cont, NULL);
   ok = 1;
index 98ca34989c316026490783596b232e5729f6f758..e4383fe4c272437a2d5ffe0c9fc851db1cc09bf3 100644 (file)
@@ -90,6 +90,7 @@ shutdown_callback (void *cls, const char *emsg)
 {
   if (emsg != NULL)
   {
+    GNUNET_log (GNUNET_ERROR_TYPE_ERROR, "Error on shutdown! ret=%d\n", ok);
     if (ok == 0)
       ok = 2;
   }
@@ -114,6 +115,8 @@ finish_testing (void *cls, int32_t success, const char *emsg)
 
   if (!he)
   {
+    GNUNET_log (GNUNET_ERROR_TYPE_ERROR,
+                "gethostbyname failed, rp_filtering?\n");
     ok = 2;
   }
   else
@@ -133,7 +136,7 @@ finish_testing (void *cls, int32_t success, const char *emsg)
       }
       else
       {
-        GNUNET_log (GNUNET_ERROR_TYPE_INFO, "No resolution!\n");
+        GNUNET_log (GNUNET_ERROR_TYPE_ERROR, "No resolution!\n");
       }
     }
   }
@@ -164,7 +167,7 @@ end_badly_cont (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc)
 static void
 end_badly (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc)
 {
-  GNUNET_log (GNUNET_ERROR_TYPE_INFO, "Failing test with error: `%s'!\n",
+  GNUNET_log (GNUNET_ERROR_TYPE_ERROR, "Failing test with error: `%s'!\n",
               (char *) cls);
   GNUNET_SCHEDULER_add_now (&end_badly_cont, NULL);
   ok = 1;
index cad26a4291ebbb2905c49701e8272d855081b181..d75ff2d28f4aeac56bb0ae4d257106eedb14661c 100644 (file)
@@ -87,7 +87,7 @@ shutdown_callback (void *cls, const char *emsg)
 {
   if (emsg != NULL)
   {
-    GNUNET_log (GNUNET_ERROR_TYPE_ERROR, "Error on shutdown!\n", ok);
+    GNUNET_log (GNUNET_ERROR_TYPE_ERROR, "Error on shutdown! ret=%d\n", ok);
     if (ok == 0)
       ok = 2;
   }