diff options
author | Christian Grothoff <christian@grothoff.org> | 2015-09-21 15:40:22 +0200 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2015-09-21 15:40:22 +0200 |
commit | bef69272f6e1058876e701ca3fa763ff9c4ec285 (patch) | |
tree | aad6ca7bf08e49c8054834fa80c2078f0fc9326b /src | |
parent | 49739455b0c522a9257966dcad92a76081450009 (diff) | |
download | exchange-bef69272f6e1058876e701ca3fa763ff9c4ec285.tar.xz |
nicer logging
Diffstat (limited to 'src')
-rwxr-xr-x | src/mint/test_taler_mint_httpd_afl.sh | 6 | ||||
-rw-r--r-- | src/util/json.c | 2 |
2 files changed, 5 insertions, 3 deletions
diff --git a/src/mint/test_taler_mint_httpd_afl.sh b/src/mint/test_taler_mint_httpd_afl.sh index 62ad43610..a5ae081e7 100755 --- a/src/mint/test_taler_mint_httpd_afl.sh +++ b/src/mint/test_taler_mint_httpd_afl.sh @@ -23,10 +23,12 @@ # # Setup keys. taler-mint-keyup -d test-mint-home -m test-mint-home/master.priv +# Only log hard errors, we expect lots of warnings... +export GNUNET_FORCE_LOG="taler-mint-httpd;;;;ERROR/libmicrohttpd;;;;ERROR/" # Run test... -for n in afl-tests/*.req +for n in afl-tests/* do - echo -n "Test $n" + echo -n "Test $n " taler-mint-httpd -d test-mint-home/ -t 1 -f $n -C > /dev/null || { echo "FAIL!"; exit 1; } echo "OK" done diff --git a/src/util/json.c b/src/util/json.c index 8faee6035..9f7623b2a 100644 --- a/src/util/json.c +++ b/src/util/json.c @@ -305,7 +305,7 @@ TALER_json_to_amount (json_t *json, GNUNET_break (0); return GNUNET_SYSERR; } - GNUNET_log (GNUNET_ERROR_TYPE_ERROR, + GNUNET_log (GNUNET_ERROR_TYPE_WARNING, "Malformed JSON amount: %s\n", json_enc); free (json_enc); |