From f6fe309f5dbfd9680bea7738e2e15caaa0953080 Mon Sep 17 00:00:00 2001 From: Florian Dold Date: Mon, 21 Nov 2016 17:53:07 +0100 Subject: better logging when db connection fails --- 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 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; } -- cgit v1.2.3