diff options
author | Florian Dold <florian.dold@gmail.com> | 2019-05-10 20:08:01 +0200 |
---|---|---|
committer | Florian Dold <florian.dold@gmail.com> | 2019-05-10 20:10:02 +0200 |
commit | c1f06ac28fef5498952994e0399312b1fc567f22 (patch) | |
tree | ad71f80bb08bfe20ff33880509263d78f334409b /src/include/gnunet_curl_lib.h | |
parent | d1d18e6492708a0ce758ddd8c509f21b0ecbf6a0 (diff) | |
download | gnunet-c1f06ac28fef5498952994e0399312b1fc567f22.tar.gz gnunet-c1f06ac28fef5498952994e0399312b1fc567f22.zip |
Implement asynchronous scope identifiers.
Without entering an asynchronous scope, logs are the same before. When
entering an asynchronous scope (either thread-based of
scheduler/task-based), all log lines within an asynchronous scope
contain its ID.
Currently this is only used in GNU Taler, for debugging requests across
multiple services. This allows us to get all log lines pertaining to a
particular request for a user or another service.
Diffstat (limited to 'src/include/gnunet_curl_lib.h')
-rw-r--r-- | src/include/gnunet_curl_lib.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/include/gnunet_curl_lib.h b/src/include/gnunet_curl_lib.h index 86cb54f6b..84c8d59f8 100644 --- a/src/include/gnunet_curl_lib.h +++ b/src/include/gnunet_curl_lib.h | |||
@@ -294,6 +294,16 @@ void | |||
294 | GNUNET_CURL_gnunet_scheduler_reschedule (void *cls); | 294 | GNUNET_CURL_gnunet_scheduler_reschedule (void *cls); |
295 | 295 | ||
296 | 296 | ||
297 | /** | ||
298 | * Enable sending the async scope ID as a header. | ||
299 | * | ||
300 | * @param ctx the context to enable this for | ||
301 | * @param header_name name of the header to send. | ||
302 | */ | ||
303 | void | ||
304 | GNUNET_CURL_enable_async_scope_header (struct GNUNET_CURL_Context *ctx, const char *header_name); | ||
305 | |||
306 | |||
297 | #endif | 307 | #endif |
298 | /** @} */ /* end of group */ | 308 | /** @} */ /* end of group */ |
299 | 309 | ||