commit f6fe309f5dbfd9680bea7738e2e15caaa0953080 parent f3c4d643298b4adb24a92a17fb579522d86a296a Author: Florian Dold <florian.dold@gmail.com> Date: Mon, 21 Nov 2016 17:53:07 +0100 better logging when db connection fails Diffstat:
| M | src/exchangedb/plugin_exchangedb_postgres.c | | | 3 | ++- |
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git 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; }