Merge pull request #158 from nix-community/revert-warnlevel-malformed-gen
tool: revert log level of malformed gens
This commit is contained in:
commit
efff933460
|
@ -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
|
||||||
);
|
);
|
||||||
|
|
Loading…
Reference in New Issue