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:
parent
68d1928e3d
commit
8efc061e1d
|
@ -172,6 +172,10 @@ 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 {
|
||||||
|
// 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!(
|
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