🔊 (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};
@ -46,17 +46,7 @@ impl<'de> Deserialize<'de> for LangNegotiation {
"full" => Self::Full,
"noquery" => Self::NoQuery,
"configonly" => Self::ConfigOnly,
_ => {
let default = Self::default();
println!(
concat!(
"\nInvalid value \"{}\" for [app].lang_negotiation. ",
"Using \"{:?}\". Check settings.",
),
raw, default,
);
default
}
_ => trace::warn_invalid_setting("[app].lang_negotiation", &raw, Self::default()),
};
Ok(result)
}