From 12ee5a79af418635fe98215921c1e64ecc02bc51 Mon Sep 17 00:00:00 2001 From: Alex Crichton Date: Thu, 17 Dec 2020 08:11:50 -0800 Subject: [PATCH] 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. --- src/cargo/ops/registry.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/cargo/ops/registry.rs b/src/cargo/ops/registry.rs index 1d1731a7da3..49dd4ac130e 100644 --- a/src/cargo/ops/registry.rs +++ b/src/cargo/ops/registry.rs @@ -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),