gnunet-svn
[Top][All Lists]
Advanced

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

[taler-merchant] branch master updated: more logging


From: gnunet
Subject: [taler-merchant] branch master updated: more logging
Date: Mon, 11 Nov 2019 19:41:30 +0100

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 af14d8e  more logging
af14d8e is described below

commit af14d8eccd300e7ae969079394f4e6ab46decfc5
Author: Christian Grothoff <address@hidden>
AuthorDate: Mon Nov 11 19:41:27 2019 +0100

    more logging
---
 src/backend/taler-merchant-httpd_check-payment.c | 14 +++++++++++---
 src/backend/taler-merchant-httpd_pay.c           |  3 +++
 2 files changed, 14 insertions(+), 3 deletions(-)

diff --git a/src/backend/taler-merchant-httpd_check-payment.c 
b/src/backend/taler-merchant-httpd_check-payment.c
index 85f2d3e..f0e39c2 100644
--- a/src/backend/taler-merchant-httpd_check-payment.c
+++ b/src/backend/taler-merchant-httpd_check-payment.c
@@ -462,7 +462,9 @@ MH_handler_check_payment (struct TMH_RequestHandler *rh,
         parse_contract_terms (cprc))
       return cprc->ret;
   }
-
+  GNUNET_log (GNUNET_ERROR_TYPE_INFO,
+              "Checking payment status for order `%s'\n",
+              cprc->order_id);
   GNUNET_assert (NULL != cprc->contract_terms);
 
   /* Check if the order has been paid for. */
@@ -489,6 +491,10 @@ MH_handler_check_payment (struct TMH_RequestHandler *rh,
     }
     else if (0 == qs)
     {
+      GNUNET_log (GNUNET_ERROR_TYPE_INFO,
+                  "Order `%s' was not yet paid for session `%s'\n",
+                  cprc->order_id,
+                  cprc->session_id);
       ret = send_pay_request (cprc);
       GNUNET_free_non_null (already_paid_order_id);
       return ret;
@@ -517,8 +523,10 @@ MH_handler_check_payment (struct TMH_RequestHandler *rh,
     }
     if (0 == qs)
     {
-      GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
-                  "not paid yet\n");
+      GNUNET_log (GNUNET_ERROR_TYPE_INFO,
+                  "Order `%s' (contract `%s') was not yet paid\n",
+                  cprc->order_id,
+                  GNUNET_h2s (&cprc->h_contract_terms));
       return send_pay_request (cprc);
     }
     GNUNET_break (GNUNET_DB_STATUS_SUCCESS_ONE_RESULT == qs);
diff --git a/src/backend/taler-merchant-httpd_pay.c 
b/src/backend/taler-merchant-httpd_pay.c
index e3ecbb6..fb41383 100644
--- a/src/backend/taler-merchant-httpd_pay.c
+++ b/src/backend/taler-merchant-httpd_pay.c
@@ -2057,6 +2057,9 @@ begin_transaction (struct PayContext *pc)
       return;
     }
     /* Payment succeeded, save in database */
+    GNUNET_log (GNUNET_ERROR_TYPE_INFO,
+                "Contract `%s' was fully paid\n",
+                GNUNET_h2s (&pc->h_contract_terms));
     qs = db->mark_proposal_paid (db->cls,
                                  &pc->h_contract_terms,
                                  &pc->mi->pubkey);

-- 
To stop receiving notification emails like this one, please contact
address@hidden.



reply via email to

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