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:
@@ -95,15 +95,15 @@ impl MetaService {
|
|||||||
// Print warnings for duplicate output names
|
// Print warnings for duplicate output names
|
||||||
for (output_name, plugin_names) in &output_names {
|
for (output_name, plugin_names) in &output_names {
|
||||||
if plugin_names.len() > 1 {
|
if plugin_names.len() > 1 {
|
||||||
eprintln!("Warning: Output name '{}' is provided by multiple plugins: {}",
|
log::warn!("Output name '{}' is provided by multiple plugins: {}",
|
||||||
output_name,
|
output_name,
|
||||||
plugin_names.join(", "));
|
plugin_names.join(", "));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
for meta_plugin in plugins.iter_mut() {
|
for meta_plugin in plugins.iter_mut() {
|
||||||
if let Err(e) = meta_plugin.initialize(conn, item_id) {
|
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);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user