mirror of
https://github.com/curl/curl.git
synced 2026-08-24 17:53:33 +03:00
curl: output warning at --verbose output for debug-enabled version
+ a libcurl warning in the debug output Assisted-by: Jay Satiro Ref: https://curl.se/mail/lib-2023-01/0039.html Closes #10278
This commit is contained in:
parent
13991d60ee
commit
7d3b167f48
3 changed files with 23 additions and 0 deletions
|
|
@ -1861,6 +1861,15 @@ static CURLMcode multi_runsingle(struct Curl_multi *multi,
|
|||
multistate(data, MSTATE_COMPLETED);
|
||||
}
|
||||
|
||||
#ifdef DEBUGBUILD
|
||||
if(!multi->warned) {
|
||||
infof(data, "!!! WARNING !!!");
|
||||
infof(data, "This is a debug build of libcurl, "
|
||||
"do not use in production.");
|
||||
multi->warned = true;
|
||||
}
|
||||
#endif
|
||||
|
||||
do {
|
||||
/* A "stream" here is a logical stream if the protocol can handle that
|
||||
(HTTP/2), or the full connection for older protocols */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue