aboutsummaryrefslogtreecommitdiff
path: root/src/lib/testing_api_loop.c
diff options
context:
space:
mode:
authorFlorian Dold <florian.dold@gmail.com>2019-05-10 20:11:29 +0200
committerFlorian Dold <florian.dold@gmail.com>2019-05-10 20:11:29 +0200
commit081280a88bfd833187dd8996e6482327c74dde8b (patch)
tree497ab82baf8bd0ef1b9be7d9507b3e37549a56b9 /src/lib/testing_api_loop.c
parentb8a718f8595f99b1c7241b311e80a180e8958ffd (diff)
Create async scopes.
Log statements contain an async scope identifier, which allows to correlate logs from the same request.
Diffstat (limited to 'src/lib/testing_api_loop.c')
-rw-r--r--src/lib/testing_api_loop.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/lib/testing_api_loop.c b/src/lib/testing_api_loop.c
index 071388f2c..bebd159de 100644
--- a/src/lib/testing_api_loop.c
+++ b/src/lib/testing_api_loop.c
@@ -807,6 +807,7 @@ TALER_TESTING_setup (TALER_TESTING_Main main_cb,
is.ctx = GNUNET_CURL_init
(&GNUNET_CURL_gnunet_scheduler_reschedule,
&is.rc);
+ GNUNET_CURL_enable_async_scope_header (is.ctx, "Taler-Correlation-Id");
GNUNET_assert (NULL != is.ctx);
is.rc = GNUNET_CURL_gnunet_rc_create (is.ctx);