- fixes
[oweals/gnunet.git] / src / namestore / test_namestore_api_create_update.c
index 22313aca9d61df9777e1f012a40a0a6a2182f98c..ca2cde10c4ac33776f8b566ab6a79453acb8181a 100644 (file)
@@ -325,9 +325,9 @@ create_updated_cont (void *cls, int32_t success, const char *emsg)
   if (success == GNUNET_NO)
   {
     res = 0;
-    GNUNET_log (GNUNET_ERROR_TYPE_ERROR, "Updated record for name `%s'\n", name);
+    GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "Updated record for name `%s'\n", name);
   }
-  if (success == GNUNET_OK)
+  else if (success == GNUNET_OK)
   {
     res = 1;
     GNUNET_log (GNUNET_ERROR_TYPE_ERROR, "FAIL, Create new record for name `%s'\n", name);