fix: replace eprintln with log::warn for warnings

Co-authored-by: aider (openai/andrew/openrouter/qwen/qwen3-coder) <aider@aider.chat>
This commit is contained in:
Andrew Phillips
2025-08-26 10:03:25 -03:00
parent 6b06b23686
commit 902c2f9c17

View File

@@ -95,15 +95,15 @@ impl MetaService {
// Print warnings for duplicate output names
for (output_name, plugin_names) in &output_names {
if plugin_names.len() > 1 {
eprintln!("Warning: Output name '{}' is provided by multiple plugins: {}",
output_name,
plugin_names.join(", "));
log::warn!("Output name '{}' is provided by multiple plugins: {}",
output_name,
plugin_names.join(", "));
}
}
for meta_plugin in plugins.iter_mut() {
if let Err(e) = meta_plugin.initialize(conn, item_id) {
eprintln!("Warning: Failed to initialize meta plugin: {}", e);
log::warn!("Failed to initialize meta plugin: {}", e);
}
}
}