You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I built libcurl for multiple SSL-backends (including MBedTLS) and with -DMBEDTLS_DEBUG=1 -DMBEDTLS_DEBUG_C=1 -DCURLDEBUG=1 in my CFLAGS.
But the result of running:
Since the function mbed_debug() already gets the line with \n termination.
And then infof() adds another \n to the output. Hence I stripped off the last \n and it looks better:
But as an added bonus, I'd like that a curl -vv https://example.com 2> mbedtls-trace.txt (verbose level 2), to
include the filename and line from MBedTls:
Usually we do it with a build condition. A special define that we set when we want to debug that particular section of the code and then we get more detailed debug-logging.
I did this
I built libcurl for multiple SSL-backends (including MBedTLS) and with
-DMBEDTLS_DEBUG=1 -DMBEDTLS_DEBUG_C=1 -DCURLDEBUG=1
in myCFLAGS
.But the result of running:
or:
looks awful:
Since the function
mbed_debug()
already gets the line with\n
termination.And then
infof()
adds another\n
to the output. Hence I stripped off the last\n
and it looks better:But as an added bonus, I'd like that a
curl -vv https://example.com 2> mbedtls-trace.txt
(verbose level 2), toinclude the filename and line from MBedTls:
But that seems impossible now. How is this supposed to be handled?
I expected the following
No empty lines (like for other SSL-backends),
curl/libcurl version
curl 8.7.2-DEV (x86_64-pc-win32)
fromgit master
yesterday.operating system
Win-10.
The text was updated successfully, but these errors were encountered: