gnunet-svn
[Top][All Lists]
Advanced

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

[gnunet] branch master updated: do not log as error, give better message


From: gnunet
Subject: [gnunet] branch master updated: do not log as error, give better message
Date: Fri, 13 Mar 2020 19:36:06 +0100

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

grothoff pushed a commit to branch master
in repository gnunet.

The following commit(s) were added to refs/heads/master by this push:
     new eb903e5bf do not log as error, give better message
eb903e5bf is described below

commit eb903e5bfc4b979967cfe27c98a994264befb155
Author: Christian Grothoff <address@hidden>
AuthorDate: Fri Mar 13 19:31:48 2020 +0100

    do not log as error, give better message
---
 contrib/build-common | 2 +-
 src/pq/pq_connect.c  | 6 ++++--
 src/util/disk.c      | 1 -
 3 files changed, 5 insertions(+), 4 deletions(-)

diff --git a/contrib/build-common b/contrib/build-common
index d81bbfabc..1915a74bb 160000
--- a/contrib/build-common
+++ b/contrib/build-common
@@ -1 +1 @@
-Subproject commit d81bbfabc2538932f631d3946bd6a9b95182b4f2
+Subproject commit 1915a74bbb4cd2ae9bc541a382dfebc37064a2fd
diff --git a/src/pq/pq_connect.c b/src/pq/pq_connect.c
index 2f017474b..a7a57f98a 100644
--- a/src/pq/pq_connect.c
+++ b/src/pq/pq_connect.c
@@ -399,8 +399,10 @@ GNUNET_PQ_reconnect (struct GNUNET_PQ_Context *db)
                        NULL);
       if (PGRES_COMMAND_OK != PQresultStatus (res))
       {
-        GNUNET_log (GNUNET_ERROR_TYPE_ERROR,
-                    "Failed to run SQL logic to setup database versioning 
logic (permission denied?)\n");
+        GNUNET_log (GNUNET_ERROR_TYPE_INFO,
+                    "Failed to run SQL logic to setup database versioning 
logic: %s/%s\n",
+                    PQresultErrorMessage (res),
+                    PQerrorMessage (db->conn));
         PQclear (res);
         PQfinish (db->conn);
         db->conn = NULL;
diff --git a/src/util/disk.c b/src/util/disk.c
index 2d5e353c8..b98c81e4b 100644
--- a/src/util/disk.c
+++ b/src/util/disk.c
@@ -827,7 +827,6 @@ GNUNET_DISK_file_write (const struct GNUNET_DISK_FileHandle 
*h,
     return GNUNET_SYSERR;
   }
 
-
   return write (h->fd, buffer, n);
 }
 

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



reply via email to

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