twister

HTTP fault injector for testing
Log | Files | Refs | README | LICENSE

commit 97e27f606af034099036e62de95dd0173a820716
parent 1159bc3c24f1354859a28e642292c090267b856f
Author: Marcello Stanisci <stanisci.m@gmail.com>
Date:   Mon, 13 May 2019 20:10:57 +0200

Debugging.

Diffstat:
Msrc/twister/taler-twister-service.c | 14+++++++++++++-
1 file changed, 13 insertions(+), 1 deletion(-)

diff --git a/src/twister/taler-twister-service.c b/src/twister/taler-twister-service.c @@ -937,7 +937,8 @@ con_val_iter (void *cls, /** - * Walk a JSON object preparing its modification. + * Walk a JSON object preparing its modification. Name to + * be changed in 'walk_object'. * * @param path the path pointing to a object to modify. * @param[out] parent will point to the parent of the targeted @@ -1137,7 +1138,10 @@ flip_object (struct MHD_Connection *con, &parent, &target, json)) + { + TALER_LOG_ERROR ("Could not walk the object in the quest for flip\n"); return; + } /* here, element is the parent of the element to be deleted. */ int ret_flip = -1; @@ -1411,6 +1415,10 @@ create_response (void *cls, if ('\0' != flip_path_ul[0]) { + GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, + "Will try to flip: %s\n", + flip_path_ul); + GNUNET_assert (0 == strcmp (MHD_HTTP_METHOD_POST, meth)); GNUNET_break @@ -1436,6 +1444,10 @@ create_response (void *cls, if ('\0' != modify_path_ul[0]) { + GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, + "Will try to modify: %s\n", + flip_path_ul); + GNUNET_assert (0 == strcmp (MHD_HTTP_METHOD_POST, meth)); GNUNET_break