-
Notifications
You must be signed in to change notification settings - Fork 2.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Auto merge of #6166 - alexcrichton:debug-curl, r=ehuss
Add convenience debugging for HTTP requests in Cargo This is something we probably should have added long long ago given the number of network issues that arise over time. This adds a new configuration setting for Cargo, `http.debug`, which activates curl's `verbose` interface which prints out information like redirects and headers flying back and forth. This is by default routed through Cargo's normal debug logging facilities, meaning one way to use this could be: CARGO_HTTP_DEBUG=true \ RUST_LOG=cargo::ops::registry \ cargo build and you should get lots of nice verbose logs as a result! This should hopefully make it much easier to remotely debug HTTP issues as we can in theory do a lot less guessing and a lot more manual inspection.
- Loading branch information
Showing
2 changed files
with
39 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters