summaryrefslogtreecommitdiff
path: root/lib/easy.c
diff options
context:
space:
mode:
authorStefan Eissing <stefan@eissing.org>2023-01-11 10:30:42 +0100
committerDaniel Stenberg <daniel@haxx.se>2023-01-12 10:14:17 +0100
commitdb91dbbf2c0a853670ce0246d6d6579e6b0f6c0c (patch)
tree4ed1851abd435b1175280bdc70a254c2b99c45f6 /lib/easy.c
parent5cf5bfcd134c1378af6dbae723abf88e309117df (diff)
downloadcurl-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.c5
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;