Merge pull request #158 from nix-community/revert-warnlevel-malformed-gen

tool: revert log level of malformed gens
This commit is contained in:
nikstur 2023-04-23 23:44:07 +02:00 committed by GitHub
commit efff933460
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 1 deletions

View File

@ -172,7 +172,11 @@ impl Installer {
// Ignore failing to read a generation so that old malformed generations do not stop // Ignore failing to read a generation so that old malformed generations do not stop
// lzbt from working. // lzbt from working.
if let Err(e) = &generation_result { if let Err(e) = &generation_result {
log::warn!( // Semantically, this message should be a warning. However, since users might
// have hundreds of old and thus malformed generations and can do little about
// it, this should remain a debug message. This way the user is not spammed
// with no-op warnings while still enabling debugging.
log::debug!(
"Ignoring generation {} because it's malformed: {e:#}", "Ignoring generation {} because it's malformed: {e:#}",
link.version link.version
); );