🔊 (config): Emite avisos de opciones como trazas

This commit is contained in:
Manuel Cillero 2026-10-10 22:05:36 +02:00
parent 91f60a420d
commit 3512fed7e0
8 changed files with 81 additions and 85 deletions

View file

@ -1,4 +1,4 @@
use crate::AutoDefault;
use crate::{AutoDefault, trace};
use serde::{Deserialize, Deserializer};
@ -34,17 +34,7 @@ impl<'de> Deserialize<'de> for LogFormat {
"full" => Self::Full,
"compact" => Self::Compact,
"pretty" => Self::Pretty,
_ => {
let default = Self::default();
println!(
concat!(
"\nInvalid value \"{}\" for [log].format. ",
"Using \"{:?}\". Check settings.",
),
raw, default,
);
default
}
_ => trace::warn_invalid_setting("[log].format", &raw, Self::default()),
};
Ok(result)
}