diff options
author | Stefan Eissing <stefan@eissing.org> | 2023-01-11 10:30:42 +0100 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2023-01-12 10:14:17 +0100 |
commit | db91dbbf2c0a853670ce0246d6d6579e6b0f6c0c (patch) | |
tree | 4ed1851abd435b1175280bdc70a254c2b99c45f6 /lib/easy.c | |
parent | 5cf5bfcd134c1378af6dbae723abf88e309117df (diff) | |
download | curl-db91dbbf2c0a853670ce0246d6d6579e6b0f6c0c.tar.gz |
curl_log: for failf/infof and debug logging implementations
- new functions and macros for cfilter debugging
- set CURL_DEBUG with names of cfilters where debug logging should be
enabled
- use GNUC __attribute__ to enable printf format checks during compile
Closes #10271
Diffstat (limited to 'lib/easy.c')
-rw-r--r-- | lib/easy.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/easy.c b/lib/easy.c index f5ccaae6e..2cd1ada4e 100644 --- a/lib/easy.c +++ b/lib/easy.c @@ -165,6 +165,11 @@ static CURLcode global_init(long flags, bool memoryfuncs) #endif } + if(Curl_log_init()) { + DEBUGF(fprintf(stderr, "Error: Curl_log_init failed\n")); + goto fail; + } + if(!Curl_ssl_init()) { DEBUGF(fprintf(stderr, "Error: Curl_ssl_init failed\n")); goto fail; |