From 8563dcc8452d243ec63f98f0b63b48aa82c050a3 Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Mon, 16 Jan 2023 16:47:15 +0100 Subject: [PATCH] log which subquery failed --- src/exchangedb/pg_get_reserve_history.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/exchangedb/pg_get_reserve_history.c b/src/exchangedb/pg_get_reserve_history.c index 6042a620e..89701ae71 100644 --- a/src/exchangedb/pg_get_reserve_history.c +++ b/src/exchangedb/pg_get_reserve_history.c @@ -1157,7 +1157,12 @@ TEH_PG_get_reserve_status (void *cls, &rhc); if ( (0 > qs) || (GNUNET_OK != rhc.status) ) + { + GNUNET_log (GNUNET_ERROR_TYPE_WARNING, + "Query %s failed\n", + work[i].statement); break; + } } if ( (qs < 0) || (rhc.status != GNUNET_OK) )