diff options
author | Christian Grothoff <christian@grothoff.org> | 2019-01-10 15:33:52 +0100 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2019-01-10 15:33:52 +0100 |
commit | 9b683b2ed823e879bf2345cb62204277b1af87dc (patch) | |
tree | 1e77a025440648fad649bd6c58eddd987f7c96b4 /src/lib | |
parent | 84d4c87774e08a84aa130c2613b9132beaa1484f (diff) | |
download | merchant-9b683b2ed823e879bf2345cb62204277b1af87dc.tar.gz merchant-9b683b2ed823e879bf2345cb62204277b1af87dc.tar.bz2 merchant-9b683b2ed823e879bf2345cb62204277b1af87dc.zip |
improve logging for reoccurrances of #5492
Diffstat (limited to 'src/lib')
-rw-r--r-- | src/lib/testing_api_cmd_pay.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/lib/testing_api_cmd_pay.c b/src/lib/testing_api_cmd_pay.c index 6121171e..15e0adac 100644 --- a/src/lib/testing_api_cmd_pay.c +++ b/src/lib/testing_api_cmd_pay.c @@ -802,12 +802,16 @@ _pay_run (const char *merchant_url, &error_name, &error_line)) { + char *js; + + js = json_dumps (contract_terms, + JSON_INDENT (1)); GNUNET_log (GNUNET_ERROR_TYPE_ERROR, "Parser failed on %s:%u for input `%s'\n", error_name, error_line, - json_dumps (contract_terms, - JSON_INDENT (1))); + js); + free (js); GNUNET_break_op (0); return NULL; } |