Skip to content

Commit

Permalink
With debug HTTP mode log curl's version
Browse files Browse the repository at this point in the history
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
alexcrichton committed Dec 17, 2020
1 parent fde8ee3 commit 12ee5a7
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 12ee5a7

Please sign in to comment.