tool: add comment for log level of malformed gens

The message about malformed generatiosn should semantically be a
warning. However, since users might have hundres 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.
This commit is contained in:
nikstur 2023-04-23 22:52:13 +02:00
parent 68d1928e3d
commit 8efc061e1d
1 changed files with 4 additions and 0 deletions

View File

@ -172,6 +172,10 @@ impl Installer {
// Ignore failing to read a generation so that old malformed generations do not stop
// lzbt from working.
if let Err(e) = &generation_result {
// 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:#}",
link.version