@@ -61,6 +61,7 @@ use clap::ValueEnum;
6161use itertools:: Itertools ;
6262use same_file:: Handle ;
6363use serde:: { Deserialize , Serialize } ;
64+ use tracing:: { debug, error, info, warn} ;
6465
6566use crate :: currentprocess:: terminalsource;
6667use crate :: errors:: RustupError ;
@@ -983,8 +984,8 @@ async fn maybe_install_rust(
983984
984985pub ( crate ) fn uninstall ( no_prompt : bool , process : & Process ) -> Result < utils:: ExitCode > {
985986 if NEVER_SELF_UPDATE {
986- err ! ( "self-uninstall is disabled for this build of rustup" ) ;
987- err ! ( "you should probably use your system package manager to uninstall rustup" ) ;
987+ error ! ( "self-uninstall is disabled for this build of rustup" ) ;
988+ error ! ( "you should probably use your system package manager to uninstall rustup" ) ;
988989 return Ok ( utils:: ExitCode ( 1 ) ) ;
989990 }
990991
@@ -1110,8 +1111,8 @@ pub(crate) async fn update(cfg: &Cfg<'_>) -> Result<utils::ExitCode> {
11101111 match update_permitted {
11111112 HardFail => {
11121113 // TODO: Detect which package manager and be more useful.
1113- err ! ( "self-update is disabled for this build of rustup" ) ;
1114- err ! ( "you should probably use your system package manager to update rustup" ) ;
1114+ error ! ( "self-update is disabled for this build of rustup" ) ;
1115+ error ! ( "you should probably use your system package manager to update rustup" ) ;
11151116 return Ok ( utils:: ExitCode ( 1 ) ) ;
11161117 }
11171118 Skip => {
@@ -1124,7 +1125,7 @@ pub(crate) async fn update(cfg: &Cfg<'_>) -> Result<utils::ExitCode> {
11241125 match prepare_update ( cfg. process ) . await ? {
11251126 Some ( setup_path) => {
11261127 let Some ( version) = get_and_parse_new_rustup_version ( & setup_path) else {
1127- err ! ( "failed to get rustup version" ) ;
1128+ error ! ( "failed to get rustup version" ) ;
11281129 return Ok ( utils:: ExitCode ( 1 ) ) ;
11291130 } ;
11301131
0 commit comments