Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add convenience debugging for HTTP requests in Cargo #6166

Merged
merged 1 commit into from
Oct 12, 2018

Commits on Oct 11, 2018

  1. 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.
    alexcrichton committed Oct 11, 2018
    Configuration menu
    Copy the full SHA
    ba37581 View commit details
    Browse the repository at this point in the history