gnunet-svn
[Top][All Lists]
Advanced

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

[taler-taler-mdb] 22/23: logging


From: gnunet
Subject: [taler-taler-mdb] 22/23: logging
Date: Wed, 04 Dec 2019 14:16:08 +0100

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

grothoff pushed a commit to branch master
in repository taler-mdb.

commit 6202e2294295b98bbfd580584fcebabf2157207d
Author: Christian Grothoff <address@hidden>
AuthorDate: Wed Dec 4 13:54:58 2019 +0100

    logging
---
 src/main.c | 11 +++++++++--
 1 file changed, 9 insertions(+), 2 deletions(-)

diff --git a/src/main.c b/src/main.c
index 8f0831a..b99a075 100644
--- a/src/main.c
+++ b/src/main.c
@@ -1196,8 +1196,8 @@ read_keyboard_command (void *cls)
   }
   if (NULL != payment_activity)
   {
-    fprintf (stderr,
-             "Purchase activity already pending\n");
+    GNUNET_log (GNUNET_ERROR_TYPE_ERROR,
+                "Purchase activity already pending\n");
     start_read_keyboard ();
     return;
   }
@@ -1361,6 +1361,7 @@ handle_command (const char *hex,
     {
       unsigned int subcmd;
 
+      GNUNET_break (GNUNET_YES == mdb.session_running);
       if (4 > hex_len)
       {
         GNUNET_break_op (0);
@@ -1383,6 +1384,7 @@ handle_command (const char *hex,
         {
           unsigned int product;
 
+          GNUNET_break (GNUNET_YES == mdb.session_running);
           /* NOTE: hex[4..7] contain the price */
           if (12 > hex_len)
           {
@@ -1403,6 +1405,9 @@ handle_command (const char *hex,
           for (unsigned int i = 0; i < products_length; i++)
             if (product == products[i].number)
             {
+              GNUNET_log (GNUNET_ERROR_TYPE_ERROR,
+                          "Product %u selected on NFC\n",
+                          product);
               payment_activity = launch_payment (&products[i]);
               return;
             }
@@ -1413,11 +1418,13 @@ handle_command (const char *hex,
           break;
         }
       case VMC_VEND_SUCCESS:
+        GNUNET_break (GNUNET_YES == mdb.session_running);
         GNUNET_log (GNUNET_ERROR_TYPE_INFO,
                     "Vend Success\n");
         break;
       case VMC_VEND_FAILURE:
         {
+          GNUNET_break (GNUNET_YES == mdb.session_running);
           mdb.cmd = &endSession;
           mdb.session_running = GNUNET_NO;
           GNUNET_log (GNUNET_ERROR_TYPE_INFO,

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



reply via email to

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