diff options
author | Christian Grothoff <christian@grothoff.org> | 2020-03-13 19:31:48 +0100 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2020-03-13 19:31:48 +0100 |
commit | eb903e5bfc4b979967cfe27c98a994264befb155 (patch) | |
tree | 19cfdd31d81255eee1dbf6e302adabcab62d3923 /src/pq | |
parent | 0c8362ad866852af0b93c4001636cb510e38df6a (diff) | |
download | gnunet-eb903e5bfc4b979967cfe27c98a994264befb155.tar.gz gnunet-eb903e5bfc4b979967cfe27c98a994264befb155.zip |
do not log as error, give better message
Diffstat (limited to 'src/pq')
-rw-r--r-- | src/pq/pq_connect.c | 6 |
1 files changed, 4 insertions, 2 deletions
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) | |||
399 | NULL); | 399 | NULL); |
400 | if (PGRES_COMMAND_OK != PQresultStatus (res)) | 400 | if (PGRES_COMMAND_OK != PQresultStatus (res)) |
401 | { | 401 | { |
402 | GNUNET_log (GNUNET_ERROR_TYPE_ERROR, | 402 | GNUNET_log (GNUNET_ERROR_TYPE_INFO, |
403 | "Failed to run SQL logic to setup database versioning logic (permission denied?)\n"); | 403 | "Failed to run SQL logic to setup database versioning logic: %s/%s\n", |
404 | PQresultErrorMessage (res), | ||
405 | PQerrorMessage (db->conn)); | ||
404 | PQclear (res); | 406 | PQclear (res); |
405 | PQfinish (db->conn); | 407 | PQfinish (db->conn); |
406 | db->conn = NULL; | 408 | db->conn = NULL; |