Skip to content

Commit 2fe829a

Browse files
committed
hawkbit-client: add url and method value in debug mode
1 parent 7201b7e commit 2fe829a

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/hawkbit-client.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -427,6 +427,8 @@ static gboolean rest_request(enum HTTPMethod method, const gchar *url,
427427
curl_easy_setopt(curl, CURLOPT_WRITEFUNCTION, curl_write_cb);
428428
curl_easy_setopt(curl, CURLOPT_WRITEDATA, fetch_buffer);
429429

430+
g_debug("Request method: %s url: %s",HTTPMethod_STRING[method], url);
431+
430432
if (jsonRequestBody) {
431433
g_autoptr(JsonGenerator) generator = json_generator_new();
432434
g_autoptr(JsonNode) req_root = json_builder_get_root(jsonRequestBody);

0 commit comments

Comments
 (0)