Merge pull request #125 from nix-community/tool-finetune-log-messsages

tool: fine tune a few log messages
This commit is contained in:
Julian Stecklina 2023-03-06 10:04:37 +01:00 committed by GitHub
commit 3efb505a2a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 3 deletions

View File

@ -172,7 +172,7 @@ impl Installer {
let generation = match generation_result { let generation = match generation_result {
Ok(generation) => generation, Ok(generation) => generation,
Err(e) => { Err(e) => {
log::info!( log::debug!(
"Ignoring generation {} because it's malformed.", "Ignoring generation {} because it's malformed.",
link.version link.version
); );
@ -317,11 +317,11 @@ impl Installer {
for (from, to) in paths { for (from, to) in paths {
let newer_systemd_boot_available = newer_systemd_boot(from, to)?; let newer_systemd_boot_available = newer_systemd_boot(from, to)?;
if newer_systemd_boot_available { if newer_systemd_boot_available {
log::info!("Updating systemd-boot...") log::info!("Updating {to:?}...")
}; };
let systemd_boot_is_signed = &self.key_pair.verify(to); let systemd_boot_is_signed = &self.key_pair.verify(to);
if !systemd_boot_is_signed { if !systemd_boot_is_signed {
log::warn!("systemd-boot is not signed. Replacing it with a signed binary...") log::warn!("${to:?} is not signed. Replacing it with a signed binary...")
}; };
if newer_systemd_boot_available || !systemd_boot_is_signed { if newer_systemd_boot_available || !systemd_boot_is_signed {