@@ -61,6 +61,7 @@ use clap::ValueEnum;
6161use itertools:: Itertools ;
6262use same_file:: Handle ;
6363use serde:: { Deserialize , Serialize } ;
64+ use tracing:: { error, info, trace, warn} ;
6465
6566use crate :: currentprocess:: terminalsource;
6667use crate :: errors:: RustupError ;
@@ -237,7 +238,7 @@ impl<'a> InstallOpts<'a> {
237238 Some ( MaybeOfficialToolchainName :: Some ( s) ) => s. into ( ) ,
238239 } ;
239240 let resolved = partial_channel. resolve ( & host_triple) ?;
240- debug ! ( "Successfully resolved installation toolchain as: {resolved}" ) ;
241+ trace ! ( "Successfully resolved installation toolchain as: {resolved}" ) ;
241242 Ok ( ( ) )
242243 }
243244}
@@ -497,7 +498,7 @@ static DEFAULT_UPDATE_ROOT: &str = "https://static.rust-lang.org/rustup";
497498fn update_root ( process : & Process ) -> String {
498499 process
499500 . var ( "RUSTUP_UPDATE_ROOT" )
500- . inspect ( |url| debug ! ( "`RUSTUP_UPDATE_ROOT` has been set to `{url}`" ) )
501+ . inspect ( |url| trace ! ( "`RUSTUP_UPDATE_ROOT` has been set to `{url}`" ) )
501502 . unwrap_or_else ( |_| String :: from ( DEFAULT_UPDATE_ROOT ) )
502503}
503504
@@ -985,8 +986,8 @@ async fn maybe_install_rust(
985986
986987pub ( crate ) fn uninstall ( no_prompt : bool , process : & Process ) -> Result < utils:: ExitCode > {
987988 if NEVER_SELF_UPDATE {
988- err ! ( "self-uninstall is disabled for this build of rustup" ) ;
989- err ! ( "you should probably use your system package manager to uninstall rustup" ) ;
989+ error ! ( "self-uninstall is disabled for this build of rustup" ) ;
990+ error ! ( "you should probably use your system package manager to uninstall rustup" ) ;
990991 return Ok ( utils:: ExitCode ( 1 ) ) ;
991992 }
992993
@@ -1112,8 +1113,8 @@ pub(crate) async fn update(cfg: &Cfg<'_>) -> Result<utils::ExitCode> {
11121113 match update_permitted {
11131114 HardFail => {
11141115 // TODO: Detect which package manager and be more useful.
1115- err ! ( "self-update is disabled for this build of rustup" ) ;
1116- err ! ( "you should probably use your system package manager to update rustup" ) ;
1116+ error ! ( "self-update is disabled for this build of rustup" ) ;
1117+ error ! ( "you should probably use your system package manager to update rustup" ) ;
11171118 return Ok ( utils:: ExitCode ( 1 ) ) ;
11181119 }
11191120 Skip => {
@@ -1126,7 +1127,7 @@ pub(crate) async fn update(cfg: &Cfg<'_>) -> Result<utils::ExitCode> {
11261127 match prepare_update ( cfg. process ) . await ? {
11271128 Some ( setup_path) => {
11281129 let Some ( version) = get_and_parse_new_rustup_version ( & setup_path) else {
1129- err ! ( "failed to get rustup version" ) ;
1130+ error ! ( "failed to get rustup version" ) ;
11301131 return Ok ( utils:: ExitCode ( 1 ) ) ;
11311132 } ;
11321133
0 commit comments