commit ab73d7c08c677f449f2a3710934166683a4cfa12
parent b7ba7232787dd53cce413db937be744e1320534a
Author: Christian Grothoff <christian@grothoff.org>
Date: Sun, 10 Nov 2019 22:54:05 +0100
print URI sent to wallet for diagnostics
Diffstat:
1 file changed, 8 insertions(+), 3 deletions(-)
diff --git a/src/main.c b/src/main.c
@@ -254,7 +254,8 @@ wallet_transmit_uri (void *cls)
memcpy (message, put_data, sizeof (put_data));
memcpy (&message[sizeof (put_data)], pa->taler_pay_uri, slen);
GNUNET_log (GNUNET_ERROR_TYPE_INFO,
- "Sending 'PUT DATA' command to wallet\n");
+ "Sending 'PUT DATA' command for `%s' to wallet\n",
+ pa->taler_pay_uri);
if (0 > nfc_initiator_transceive_bytes (pa->pnd,
message,
sizeof (message),
@@ -263,7 +264,8 @@ wallet_transmit_uri (void *cls)
NFC_TIMEOUT))
{
GNUNET_log (GNUNET_ERROR_TYPE_ERROR,
- "Failed to send command\n"); /* Has this to be an error ? */
+ "Failed to send command\n");
+ /* Has this to be an error ? */
pa->task = GNUNET_SCHEDULER_add_now (&connect_target,
pa);
return;
@@ -378,7 +380,7 @@ connect_target (void *cls)
(pa->nt.nti.nai.szUidLen < UID_LEN_LOWER) )
{
GNUNET_log (GNUNET_ERROR_TYPE_ERROR,
- "Failed to connect, wrong nfc modulation\n");
+ "Failed to connect, wrong NFC modulation\n");
SNACK_print_hex_info ("UID",
pa->nt.nti.nai.abtUid,
pa->nt.nti.nai.szUidLen);
@@ -540,6 +542,9 @@ proposal_cb (void *cls,
payment_activity = NULL;
return;
}
+ GNUNET_log (GNUNET_ERROR_TYPE_INFO,
+ "Backend successfully created order `%s'\n",
+ order_id);
pa->order_id = GNUNET_strdup (order_id);
pa->cpo = TALER_MERCHANT_check_payment (ctx,
backendBaseUrl,