Skip to content

Commit 7fc1a37

Browse files
committed
notifications: log directly when toolchain has been installed
1 parent d3bba11 commit 7fc1a37

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

src/install.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ impl InstallMethod<'_> {
6565
UpdateStatus::Unchanged
6666
}
6767
true => {
68-
nh(Notification::InstalledToolchain(&self.dest_basename()));
68+
debug!("toolchain {} installed", self.dest_basename());
6969
match self {
7070
InstallMethod::Dist(DistOptions {
7171
old_date_version: Some((_, v)),

src/notifications.rs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,6 @@ pub(crate) enum Notification<'a> {
2626
/// member, but the notification callback is already narrowed to
2727
/// utils::notifications by the time tar unpacking is called.
2828
SetDefaultBufferSize(usize),
29-
InstalledToolchain(&'a str),
3029
UninstallingToolchain(&'a ToolchainName),
3130
UninstalledToolchain(&'a ToolchainName),
3231
UpdateHashMatches,
@@ -53,7 +52,7 @@ impl Notification<'_> {
5352
| DownloadDataReceived(_, _)
5453
| DownloadFinished(_)
5554
| DownloadFailed(_) => NotificationLevel::Debug,
56-
ReadMetadataVersion(_) | InstalledToolchain(_) | UpdateHashMatches => {
55+
ReadMetadataVersion(_) | UpdateHashMatches => {
5756
NotificationLevel::Debug
5857
}
5958
UninstallingToolchain(_)
@@ -88,7 +87,6 @@ impl Display for Notification<'_> {
8887
DownloadDataReceived(data, _) => write!(f, "received some data of size {}", data.len()),
8988
DownloadFinished(_) => write!(f, "download finished"),
9089
DownloadFailed(_) => write!(f, "download failed"),
91-
InstalledToolchain(name) => write!(f, "toolchain '{name}' installed"),
9290
UninstallingToolchain(name) => write!(f, "uninstalling toolchain '{name}'"),
9391
UninstalledToolchain(name) => write!(f, "toolchain '{name}' uninstalled"),
9492
UpdateHashMatches => write!(f, "toolchain is already up to date"),

0 commit comments

Comments
 (0)