aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarcello Stanisci <stanisci.m@gmail.com>2018-05-18 14:49:56 +0200
committerMarcello Stanisci <stanisci.m@gmail.com>2018-05-18 14:49:56 +0200
commite746e0bbbc4439e07c1217c6f12110638a8ea565 (patch)
treee105b3bbfa83d108ee73d4eb2499efe5c6a1bde1
parentc9758f75f3f3129553fc541ef9334527de93cb6c (diff)
diagnostics
-rw-r--r--src/exchange/taler-exchange-httpd_responses.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/exchange/taler-exchange-httpd_responses.c b/src/exchange/taler-exchange-httpd_responses.c
index 99ee08a80..f13352e12 100644
--- a/src/exchange/taler-exchange-httpd_responses.c
+++ b/src/exchange/taler-exchange-httpd_responses.c
@@ -148,6 +148,13 @@ TEH_RESPONSE_reply_json (struct MHD_Connection *connection,
JSON_INDENT(2));
if (NULL == json_str)
{
+ /**
+ * This log helps to figure out which
+ * function called this one and assert-failed.
+ */
+ TALER_LOG_ERROR ("Aborting json-packing for HTTP code: %u\n",
+ response_code);
+
GNUNET_assert (0);
return MHD_NO;
}