do not log as error, give better message
authorChristian Grothoff <christian@grothoff.org>
Fri, 13 Mar 2020 18:31:48 +0000 (19:31 +0100)
committerChristian Grothoff <christian@grothoff.org>
Fri, 13 Mar 2020 18:31:48 +0000 (19:31 +0100)
contrib/build-common
src/pq/pq_connect.c
src/util/disk.c

index d81bbfabc2538932f631d3946bd6a9b95182b4f2..1915a74bbb4cd2ae9bc541a382dfebc37064a2fd 160000 (submodule)
@@ -1 +1 @@
-Subproject commit d81bbfabc2538932f631d3946bd6a9b95182b4f2
+Subproject commit 1915a74bbb4cd2ae9bc541a382dfebc37064a2fd
index 2f017474bf1428b49e959c17390b1f16a7d7073d..a7a57f98a75b216526f67756b323bd7612238f75 100644 (file)
@@ -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;
index 2d5e353c810eb67af2689669a78e46f7358ea629..b98c81e4b41aded8623946a01992f1948e52c70e 100644 (file)
@@ -827,7 +827,6 @@ GNUNET_DISK_file_write (const struct GNUNET_DISK_FileHandle *h,
     return GNUNET_SYSERR;
   }
 
-
   return write (h->fd, buffer, n);
 }