fix(security): remove provider init error detail logging

This commit is contained in:
Chummy 2026-02-17 16:48:59 +08:00
parent e5a8cd3f57
commit a1bb72767a

View file

@ -356,10 +356,10 @@ pub fn create_resilient_provider(
// Fallback providers don't use the custom api_url (it's specific to primary) // Fallback providers don't use the custom api_url (it's specific to primary)
match create_provider(fallback, api_key) { match create_provider(fallback, api_key) {
Ok(provider) => providers.push((fallback.clone(), provider)), Ok(provider) => providers.push((fallback.clone(), provider)),
Err(e) => { Err(_error) => {
tracing::warn!( tracing::warn!(
fallback_provider = fallback, fallback_provider = fallback,
"Ignoring invalid fallback provider: {e}" "Ignoring invalid fallback provider during initialization"
); );
} }
} }
@ -417,7 +417,7 @@ pub fn create_routed_provider(
} }
tracing::warn!( tracing::warn!(
provider = name.as_str(), provider = name.as_str(),
"Ignoring routed provider that failed to create: {e}" "Ignoring routed provider that failed to initialize"
); );
} }
} }