From: Christian Grothoff Date: Fri, 13 Mar 2020 18:31:48 +0000 (+0100) Subject: do not log as error, give better message X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=eb903e5bfc4b979967cfe27c98a994264befb155;p=oweals%2Fgnunet.git do not log as error, give better message --- 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); }