[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] [taler-merchant] branch master updated: more diagnostics wh
From: |
gnunet |
Subject: |
[GNUnet-SVN] [taler-merchant] branch master updated: more diagnostics when storing/retrieving contract terms |
Date: |
Fri, 02 Jun 2017 13:51:41 +0200 |
This is an automated email from the git hooks/post-receive script.
marcello pushed a commit to branch master
in repository merchant.
The following commit(s) were added to refs/heads/master by this push:
new fc6ee7d more diagnostics when storing/retrieving contract terms
fc6ee7d is described below
commit fc6ee7d0f6bb4c88f969baebc9a677d77cbc386e
Author: Marcello Stanisci <address@hidden>
AuthorDate: Fri Jun 2 13:51:17 2017 +0200
more diagnostics when storing/retrieving contract terms
---
src/backenddb/plugin_merchantdb_postgres.c | 21 +++++++++++++++++----
1 file changed, 17 insertions(+), 4 deletions(-)
diff --git a/src/backenddb/plugin_merchantdb_postgres.c
b/src/backenddb/plugin_merchantdb_postgres.c
index 5299690..34266a7 100644
--- a/src/backenddb/plugin_merchantdb_postgres.c
+++ b/src/backenddb/plugin_merchantdb_postgres.c
@@ -521,6 +521,11 @@ postgres_find_contract_terms (void *cls,
PGresult *result;
unsigned int i;
+ GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
+ "finding contract term, order_id: '%s', merchant_pub: '%s'.\n",
+ order_id,
+ TALER_B2S (merchant_pub));
+
struct GNUNET_PQ_QueryParam params[] = {
GNUNET_PQ_query_param_string (order_id),
GNUNET_PQ_query_param_auto_from_type (merchant_pub),
@@ -584,6 +589,12 @@ postgres_insert_contract_terms (void *cls,
&h_contract_terms))
return GNUNET_SYSERR;
+ GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
+ "inserting contract_terms: order_id: %s, merchant_pub: %s,
h_contract_terms: %s.\n",
+ order_id,
+ TALER_B2S (merchant_pub),
+ GNUNET_h2s (&h_contract_terms));
+
struct GNUNET_PQ_QueryParam params[] = {
GNUNET_PQ_query_param_string (order_id),
GNUNET_PQ_query_param_auto_from_type (merchant_pub),
@@ -659,8 +670,9 @@ postgres_store_transaction (void *cls,
};
GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
- "Storing transaction with h_contract_terms '%s'\n",
- GNUNET_h2s (h_contract_terms));
+ "Storing transaction with h_contract_terms '%s', merchant_pub
'%s'.\n",
+ GNUNET_h2s (h_contract_terms),
+ TALER_B2S (merchant_pub));
result = GNUNET_PQ_exec_prepared (pg->conn,
"insert_transaction",
@@ -1118,8 +1130,9 @@ postgres_find_transaction (void *cls,
};
GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
- "Finding transaction for h_contract_terms '%s'\n",
- GNUNET_h2s (h_contract_terms));
+ "Finding transaction for h_contract_terms '%s', merchant_pub:
'%s'.\n",
+ GNUNET_h2s (h_contract_terms),
+ TALER_B2S (merchant_pub));
result = GNUNET_PQ_exec_prepared (pg->conn,
"find_transaction",
--
To stop receiving notification emails like this one, please contact
address@hidden
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [GNUnet-SVN] [taler-merchant] branch master updated: more diagnostics when storing/retrieving contract terms,
gnunet <=