Skip to content

Commit 3bbbb9e

Browse files
committed
feat(self-update): log RUSTUP_UPDATE_ROOT if it's set
1 parent 3f556fd commit 3bbbb9e

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/cli/self_update.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -336,6 +336,7 @@ static DEFAULT_UPDATE_ROOT: &str = "https://static.rust-lang.org/rustup";
336336
fn update_root() -> String {
337337
process()
338338
.var("RUSTUP_UPDATE_ROOT")
339+
.inspect(|url| debug!("`RUSTUP_UPDATE_ROOT` has been set to `{url}`"))
339340
.unwrap_or_else(|_| String::from(DEFAULT_UPDATE_ROOT))
340341
}
341342

0 commit comments

Comments
 (0)