[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.
- [taler-merchant] 04/19: detail structs for token family, keys and spent tokens, (continued)
- [taler-merchant] 04/19: detail structs for token family, keys and spent tokens, gnunet, 2023/12/22
- [taler-merchant] 06/19: review feedback, gnunet, 2023/12/22
- [taler-merchant] 03/19: create separate merchant_token_keys table, gnunet, 2023/12/22
- [taler-merchant] 02/19: gitignore .DS_Store files, gnunet, 2023/12/22
- [taler-merchant] 16/19: remove init lines, gnunet, 2023/12/22
- [taler-merchant] 05/19: remove unused enum, gnunet, 2023/12/22
- [taler-merchant] 14/19: refactor phases and parsing logic, gnunet, 2023/12/22
- [taler-merchant] 13/19: fix order serialization so test are passing, gnunet, 2023/12/22
- [taler-merchant] 08/19: db plugin: better naming for validity, gnunet, 2023/12/22
- [taler-merchant] 17/19: products should be optional, gnunet, 2023/12/22
- [taler-merchant] 18/19: -nicer logging,
gnunet <=
- [taler-merchant] 12/19: set next phase at the end of serialize phase, gnunet, 2023/12/22
- [taler-merchant] 15/19: add TALER_MERCHANTDB_token_family_details_free, gnunet, 2023/12/22
- [taler-merchant] 07/19: db: better naming for validity period, gnunet, 2023/12/22
- [taler-merchant] 19/19: -fix expected HTTP status codes, gnunet, 2023/12/22
- [taler-merchant] 10/19: list, update, delete token families, gnunet, 2023/12/22
- [taler-merchant] 11/19: start with post orders handler refactoring, gnunet, 2023/12/22
- [taler-merchant] 09/19: POST /tokenfamilies endpoint, gnunet, 2023/12/22