nicer logging

This commit is contained in:
Christian Grothoff 2015-09-21 15:40:22 +02:00
parent 49739455b0
commit bef69272f6
2 changed files with 5 additions and 3 deletions

View File

@ -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

View File

@ -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);