[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[taler-merchant] branch master updated: log more diagnostics
From: |
gnunet |
Subject: |
[taler-merchant] branch master updated: log more diagnostics |
Date: |
Sun, 16 Apr 2023 15:17:18 +0200 |
This is an automated email from the git hooks/post-receive script.
grothoff pushed a commit to branch master
in repository merchant.
The following commit(s) were added to refs/heads/master by this push:
new c32bc2f5 log more diagnostics
c32bc2f5 is described below
commit c32bc2f5ec9a64922a6da52df8e4c0ce3842bb5c
Author: Christian Grothoff <christian@grothoff.org>
AuthorDate: Sun Apr 16 15:17:15 2023 +0200
log more diagnostics
---
src/backend/taler-merchant-wirewatch.c | 11 +++++++++++
src/testing/test_merchant_wirewatch.sh | 6 +++---
2 files changed, 14 insertions(+), 3 deletions(-)
diff --git a/src/backend/taler-merchant-wirewatch.c
b/src/backend/taler-merchant-wirewatch.c
index 2adffe36..7772befa 100644
--- a/src/backend/taler-merchant-wirewatch.c
+++ b/src/backend/taler-merchant-wirewatch.c
@@ -266,6 +266,10 @@ credit_cb (
char *exchange_url;
struct TALER_WireTransferIdentifierRawP wtid;
+ GNUNET_log (GNUNET_ERROR_TYPE_INFO,
+ "Received wire transfer `%s' over %s\n",
+ details->wire_subject,
+ TALER_amount2s (&details->amount));
found = true;
if (GNUNET_OK !=
parse_subject (details->wire_subject,
@@ -286,6 +290,13 @@ credit_cb (
&details->amount,
details->credit_account_uri,
true /* confirmed */);
+ if (0 == qs)
+ {
+ GNUNET_log (GNUNET_ERROR_TYPE_WARNING,
+ "Inserting transfer for %s into database failed. Is the
credit account %s configured correctly?\n",
+ instance_id,
+ details->credit_account_uri);
+ }
GNUNET_free (exchange_url);
if (qs < 0)
{
diff --git a/src/testing/test_merchant_wirewatch.sh
b/src/testing/test_merchant_wirewatch.sh
index 670790cf..225d278d 100755
--- a/src/testing/test_merchant_wirewatch.sh
+++ b/src/testing/test_merchant_wirewatch.sh
@@ -117,9 +117,9 @@ FACADE_URL=$(libeufin-cli facades list | jq
.facades[0].baseUrl | tr -d \")
echo -n "Setting FACADE URL in configuration..."
taler-config -c "$CONF" \
- -s "taler-merchant-wirewatch" \
- -o "WIRE_GATEWAY_URL" \
- -V "${FACADE_URL}"
+ -s "taler-merchant-wirewatch" \
+ -o "WIRE_GATEWAY_URL" \
+ -V "${FACADE_URL}"
echo " OK"
echo -n "First prepare wallet with coins..."
--
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [taler-merchant] branch master updated: log more diagnostics,
gnunet <=