aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorFlorian Dold <florian.dold@gmail.com>2016-11-21 17:53:07 +0100
committerFlorian Dold <florian.dold@gmail.com>2016-11-21 17:53:07 +0100
commitf6fe309f5dbfd9680bea7738e2e15caaa0953080 (patch)
tree8fb3114d2970fcd597a18cbfd9ba140b2f8177a9 /src
parentf3c4d643298b4adb24a92a17fb579522d86a296a (diff)
better logging when db connection fails
Diffstat (limited to 'src')
-rw-r--r--src/exchangedb/plugin_exchangedb_postgres.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/exchangedb/plugin_exchangedb_postgres.c b/src/exchangedb/plugin_exchangedb_postgres.c
index 11d08f82d..a41dc4e6a 100644
--- a/src/exchangedb/plugin_exchangedb_postgres.c
+++ b/src/exchangedb/plugin_exchangedb_postgres.c
@@ -179,7 +179,8 @@ connect_to_postgres (struct PostgresClosure *pc)
if (CONNECTION_OK !=
PQstatus (conn))
{
- TALER_LOG_ERROR ("Database connection failed: %s\n",
+ TALER_LOG_ERROR ("Database connection to '%s' failed: %s\n",
+ pc->connection_cfg_str,
PQerrorMessage (conn));
return NULL;
}