Auto merge of #8991 - alexcrichton:debug-curl-verison, r=Eh2406

With debug HTTP mode log curl's version

This will hopefully help any future reports where we're trying to
figure out what's going on with possible different versions of the
`curl` library.
This commit is contained in:
bors 2020-12-17 16:18:33 +00:00
commit 27dba04f40

View File

@ -603,6 +603,7 @@ pub fn configure_http_handle(config: &Config, handle: &mut Easy) -> CargoResult<
if let Some(true) = http.debug {
handle.verbose(true)?;
log::debug!("{:#?}", curl::Version::get());
handle.debug_function(|kind, data| {
let (prefix, level) = match kind {
InfoType::Text => ("*", Level::Debug),