gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[taler-merchant] 18/19: -nicer logging


From: gnunet
Subject: [taler-merchant] 18/19: -nicer logging
Date: Fri, 22 Dec 2023 17:25:17 +0100

This is an automated email from the git hooks/post-receive script.

grothoff pushed a commit to branch master
in repository merchant.

commit e7a8f953162c2507e3ad609ca4644a0bba08c51a
Author: Christian Grothoff <grothoff@gnunet.org>
AuthorDate: Sat Dec 23 00:08:16 2023 +0800

    -nicer logging
---
 src/testing/testing_api_cmd_forget_order.c   | 7 ++++++-
 src/testing/testing_api_cmd_post_templates.c | 9 +++------
 2 files changed, 9 insertions(+), 7 deletions(-)

diff --git a/src/testing/testing_api_cmd_forget_order.c 
b/src/testing/testing_api_cmd_forget_order.c
index 9dc3b1b4..76d2427b 100644
--- a/src/testing/testing_api_cmd_forget_order.c
+++ b/src/testing/testing_api_cmd_forget_order.c
@@ -120,7 +120,12 @@ order_forget_cb (void *cls,
 
   ofs->ofh = NULL;
   if (ofs->http_status != hr->http_status)
-    TALER_TESTING_FAIL (ofs->is);
+  {
+    TALER_TESTING_unexpected_status (ofs->is,
+                                     hr->http_status,
+                                     ofs->http_status);
+    return;
+  }
   TALER_TESTING_interpreter_next (ofs->is);
 }
 
diff --git a/src/testing/testing_api_cmd_post_templates.c 
b/src/testing/testing_api_cmd_post_templates.c
index 8c8cd8ca..0ff0d11a 100644
--- a/src/testing/testing_api_cmd_post_templates.c
+++ b/src/testing/testing_api_cmd_post_templates.c
@@ -92,12 +92,9 @@ post_templates_cb (void *cls,
   tis->iph = NULL;
   if (tis->http_status != hr->http_status)
   {
-    GNUNET_log (GNUNET_ERROR_TYPE_ERROR,
-                "Unexpected response code %u (%d) to command %s\n",
-                hr->http_status,
-                (int) hr->ec,
-                TALER_TESTING_interpreter_get_current_label (tis->is));
-    TALER_TESTING_interpreter_fail (tis->is);
+    TALER_TESTING_unexpected_status (tis->is,
+                                     hr->http_status,
+                                     tis->http_status);
     return;
   }
   switch (hr->http_status)

-- 
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]