gnunet-svn
[Top][All Lists]
Advanced

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

[taler-exchange] branch master updated: improve logging


From: gnunet
Subject: [taler-exchange] branch master updated: improve logging
Date: Sat, 13 Jan 2024 23:19:27 +0100

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

grothoff pushed a commit to branch master
in repository exchange.

The following commit(s) were added to refs/heads/master by this push:
     new 99847d50 improve logging
99847d50 is described below

commit 99847d50a7f6187e0327d825ec21df620bed952e
Author: Christian Grothoff <christian@grothoff.org>
AuthorDate: Sat Jan 13 21:41:27 2024 +0100

    improve logging
---
 src/auditor/test-auditor.sh        |  8 ++++----
 src/testing/taler-unified-setup.sh |  2 +-
 src/util/wallet_signatures.c       | 10 ++++++++++
 3 files changed, 15 insertions(+), 5 deletions(-)

diff --git a/src/auditor/test-auditor.sh b/src/auditor/test-auditor.sh
index 9912a02a..65e77b04 100755
--- a/src/auditor/test-auditor.sh
+++ b/src/auditor/test-auditor.sh
@@ -59,7 +59,7 @@ LIBEUFIN_SETTLE_TIME=1
 # Cleanup exchange and libeufin between runs.
 function cleanup()
 {
-    if test ! -z "${EPID:-}"
+    if [ ! -z "${EPID:-}" ]
     then
         echo -n "Stopping exchange $EPID..."
         kill -TERM "$EPID"
@@ -74,7 +74,7 @@ function cleanup()
 function exit_cleanup()
 {
     echo "Running exit-cleanup"
-    if test ! -z "${POSTGRES_PATH:-}"
+    if [ ! -z "${POSTGRES_PATH:-}" ]
     then
         echo "Stopping Postgres at ${POSTGRES_PATH}"
         "${POSTGRES_PATH}/pg_ctl" \
@@ -136,7 +136,7 @@ function pre_audit () {
         exit_skip "Failed to launch Nexus"
     fi
     echo " DONE"
-    if test "${1:-no}" = "aggregator"
+    if [ "${1:-no}" = "aggregator" ]
     then
         echo -n "Running exchange aggregator ..."
         taler-exchange-aggregator \
@@ -313,7 +313,7 @@ function post_audit () {
 # Pass "drain" as $2 to run a drain operation as well.
 function run_audit () {
     pre_audit "${1:-no}"
-    if test "${2:-no}" = "drain"
+    if [ "${2:-no}" = "drain" ]
     then
         echo -n "Starting exchange..."
         taler-exchange-httpd \
diff --git a/src/testing/taler-unified-setup.sh 
b/src/testing/taler-unified-setup.sh
index ca58d983..581ba9fb 100755
--- a/src/testing/taler-unified-setup.sh
+++ b/src/testing/taler-unified-setup.sh
@@ -259,7 +259,7 @@ register_bank_account() {
         IS_EXCHANGE="false"
     fi
     MAYBE_IBAN="${4:-}"
-    if test -n "$MAYBE_IBAN";
+    if [ -n "$MAYBE_IBAN" ]
     then
         # shellcheck disable=SC2001
         ENAME=$(echo "$3" | sed -e "s/ /+/g")
diff --git a/src/util/wallet_signatures.c b/src/util/wallet_signatures.c
index 0b6ab543..ebdb7eab 100644
--- a/src/util/wallet_signatures.c
+++ b/src/util/wallet_signatures.c
@@ -201,6 +201,16 @@ TALER_wallet_deposit_verify (
                      amount);
   TALER_amount_hton (&dr.deposit_fee,
                      deposit_fee);
+  GNUNET_log (GNUNET_ERROR_TYPE_INFO,
+              "Validating deposit with hash %s, wallet timestamp %llu and 
refund deadline %llu by %s\n",
+              GNUNET_h2s (&h_contract_terms->hash),
+              (unsigned long long) wallet_timestamp.abs_time.abs_value_us,
+              (unsigned long long) refund_deadline.abs_time.abs_value_us,
+              TALER_B2S (merchant_pub));
+  GNUNET_log (GNUNET_ERROR_TYPE_INFO,
+              "Denomination is %s, wire target is %s\n",
+              GNUNET_h2s (&h_denom_pub->hash),
+              TALER_B2S (h_wire));
   if (GNUNET_OK !=
       GNUNET_CRYPTO_eddsa_verify (TALER_SIGNATURE_WALLET_COIN_DEPOSIT,
                                   &dr,

-- 
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]