mirror of
https://github.com/curl/curl.git
synced 2026-08-25 17:53:43 +03:00
build: fix disable-verbose
Fix compile error when building with `--disable-verbose`.
Adjust pytest to skip when curl is not a debug build but needs
traces.
Follow-up to b453a447ce
Closes #18053
This commit is contained in:
parent
44f5307891
commit
8e1d817cb3
12 changed files with 34 additions and 2 deletions
|
|
@ -2220,7 +2220,7 @@ static CURLcode h2_submit(struct h2_stream_ctx **pstream,
|
|||
struct dynhds h2_headers;
|
||||
nghttp2_nv *nva = NULL;
|
||||
const void *body = NULL;
|
||||
size_t nheader, bodylen, i;
|
||||
size_t nheader, bodylen;
|
||||
nghttp2_data_provider data_prd;
|
||||
int32_t stream_id;
|
||||
nghttp2_priority_spec pri_spec;
|
||||
|
|
@ -2282,9 +2282,10 @@ static CURLcode h2_submit(struct h2_stream_ctx **pstream,
|
|||
goto out;
|
||||
}
|
||||
|
||||
#ifndef CURL_DISABLE_VERBOSE_STRINGS
|
||||
#define MAX_ACC 60000 /* <64KB to account for some overhead */
|
||||
if(Curl_trc_is_verbose(data)) {
|
||||
size_t acc = 0;
|
||||
size_t acc = 0, i;
|
||||
|
||||
infof(data, "[HTTP/2] [%d] OPENED stream for %s",
|
||||
stream_id, data->state.url);
|
||||
|
|
@ -2302,6 +2303,7 @@ static CURLcode h2_submit(struct h2_stream_ctx **pstream,
|
|||
"stream to be rejected.", MAX_ACC);
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
||||
stream->id = stream_id;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue