better logging when db connection fails

This commit is contained in:
Florian Dold 2016-11-21 17:53:07 +01:00
parent f3c4d64329
commit f6fe309f5d
No known key found for this signature in database
GPG Key ID: D2E4F00F29D02A4B

View File

@ -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;
}