Skip to content

Commit

Permalink
Auto merge of #8991 - alexcrichton:debug-curl-verison, r=Eh2406
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
bors committed Dec 17, 2020
2 parents fde8ee3 + 12ee5a7 commit 27dba04
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/cargo/ops/registry.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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),
Expand Down

0 comments on commit 27dba04

Please sign in to comment.