gnunet-svn
[Top][All Lists]
Advanced

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

[GNUnet-SVN] [taler-exchange] branch master updated: fix #5903


From: gnunet
Subject: [GNUnet-SVN] [taler-exchange] branch master updated: fix #5903
Date: Thu, 26 Sep 2019 10:23:52 +0200

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 3b3daa75 fix #5903
3b3daa75 is described below

commit 3b3daa75a8b1675b37413ff3f9707bef6483addd
Author: Christian Grothoff <address@hidden>
AuthorDate: Thu Sep 26 10:23:50 2019 +0200

    fix #5903
---
 src/auditor/taler-auditor-exchange.c | 18 +++++++++---------
 1 file changed, 9 insertions(+), 9 deletions(-)

diff --git a/src/auditor/taler-auditor-exchange.c 
b/src/auditor/taler-auditor-exchange.c
index 97ac228c..15cad00f 100644
--- a/src/auditor/taler-auditor-exchange.c
+++ b/src/auditor/taler-auditor-exchange.c
@@ -154,8 +154,8 @@ main (int argc,
   if (GNUNET_OK !=
       adb->create_tables (adb->cls))
   {
-    fprintf (stderr,
-             "Failed to create tables in auditor's database\n");
+    GNUNET_log (GNUNET_ERROR_TYPE_ERROR,
+                "Failed to create tables in auditor's database\n");
     TALER_AUDITORDB_plugin_unload (adb);
     return 3;
   }
@@ -168,8 +168,8 @@ main (int argc,
     session = adb->get_session (adb->cls);
     if (NULL == session)
     {
-      fprintf (stderr,
-               "Failed to initialize database session\n");
+      GNUNET_log (GNUNET_ERROR_TYPE_ERROR,
+                  "Failed to initialize database session\n");
       TALER_AUDITORDB_plugin_unload (adb);
       return 3;
     }
@@ -189,16 +189,16 @@ main (int argc,
     }
     if (0 > qs)
     {
-      fprintf (stderr,
-               "Failed to update auditor DB (%d)\n",
-               qs);
+      GNUNET_log (GNUNET_ERROR_TYPE_ERROR,
+                  "Failed to update auditor database (status code: %d)\n",
+                  qs);
       TALER_AUDITORDB_plugin_unload (adb);
       return 3;
     }
     if (0 == qs)
     {
-      fprintf (stderr,
-               "Did not update auditor DB: value existed\n");
+      GNUNET_log (GNUNET_ERROR_TYPE_WARNING,
+                  "Could not add exchange to auditor database: entry already 
existed\n");
       TALER_AUDITORDB_plugin_unload (adb);
       return 4;
     }

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



reply via email to

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