Make self-test errors a warning only (#587)

This commit is contained in:
Ana Hobden 2023-07-25 11:17:52 -07:00 committed by GitHub
parent ff20fc04b3
commit 55cbf41a00
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 3 deletions

View file

@ -7,6 +7,7 @@ use uninstall::Uninstall;
mod self_test;
use self_test::SelfTest;
#[allow(clippy::large_enum_variant)]
#[derive(Debug, clap::Subcommand)]
pub enum NixInstallerSubcommand {
Plan(Plan),

View file

@ -228,7 +228,7 @@ impl InstallPlan {
.await?;
}
Err(err)
tracing::warn!("{err:?}")
} else {
#[cfg(feature = "diagnostics")]
if let Some(diagnostic_data) = &self.diagnostic_data {
@ -240,9 +240,9 @@ impl InstallPlan {
)
.await?;
}
Ok(())
}
Ok(())
}
#[tracing::instrument(level = "debug", skip_all)]