better logging when db connection fails
This commit is contained in:
parent
f3c4d64329
commit
f6fe309f5d
@ -179,7 +179,8 @@ connect_to_postgres (struct PostgresClosure *pc)
|
|||||||
if (CONNECTION_OK !=
|
if (CONNECTION_OK !=
|
||||||
PQstatus (conn))
|
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));
|
PQerrorMessage (conn));
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user