feat: add debug logs for meta service plugin initialization
Co-authored-by: aider (openai/andrew/openrouter/deepseek/deepseek-chat-v3.1) <aider@aider.chat>
This commit is contained in:
@@ -14,9 +14,12 @@ impl MetaService {
|
|||||||
}
|
}
|
||||||
|
|
||||||
pub fn get_plugins(&self, cmd: &mut Command, settings: &Settings) -> Vec<Box<dyn MetaPlugin>> {
|
pub fn get_plugins(&self, cmd: &mut Command, settings: &Settings) -> Vec<Box<dyn MetaPlugin>> {
|
||||||
|
debug!("META_SERVICE: get_plugins called");
|
||||||
let mut meta_plugin_types: Vec<MetaPluginType> = settings_meta_plugin_types(cmd, settings);
|
let mut meta_plugin_types: Vec<MetaPluginType> = settings_meta_plugin_types(cmd, settings);
|
||||||
|
debug!("META_SERVICE: Meta plugin types from settings: {:?}", meta_plugin_types);
|
||||||
|
|
||||||
let digest_type = settings_digest_type(cmd, settings);
|
let digest_type = settings_digest_type(cmd, settings);
|
||||||
|
debug!("META_SERVICE: Digest type: {:?}", digest_type);
|
||||||
let digest_meta_plugin_type = match digest_type {
|
let digest_meta_plugin_type = match digest_type {
|
||||||
MetaPluginType::DigestSha256 => Some(MetaPluginType::DigestSha256),
|
MetaPluginType::DigestSha256 => Some(MetaPluginType::DigestSha256),
|
||||||
MetaPluginType::DigestMd5 => Some(MetaPluginType::DigestMd5),
|
MetaPluginType::DigestMd5 => Some(MetaPluginType::DigestMd5),
|
||||||
@@ -25,6 +28,7 @@ impl MetaService {
|
|||||||
|
|
||||||
if let Some(digest_plugin_type) = digest_meta_plugin_type {
|
if let Some(digest_plugin_type) = digest_meta_plugin_type {
|
||||||
if !meta_plugin_types.contains(&digest_plugin_type) {
|
if !meta_plugin_types.contains(&digest_plugin_type) {
|
||||||
|
debug!("META_SERVICE: Adding digest plugin type: {:?}", digest_plugin_type);
|
||||||
meta_plugin_types.push(digest_plugin_type);
|
meta_plugin_types.push(digest_plugin_type);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -33,7 +37,10 @@ impl MetaService {
|
|||||||
|
|
||||||
let mut meta_plugins: Vec<Box<dyn MetaPlugin>> = meta_plugin_types
|
let mut meta_plugins: Vec<Box<dyn MetaPlugin>> = meta_plugin_types
|
||||||
.iter()
|
.iter()
|
||||||
.map(|meta_plugin_type| get_meta_plugin(meta_plugin_type.clone()))
|
.map(|meta_plugin_type| {
|
||||||
|
debug!("META_SERVICE: Creating plugin: {:?}", meta_plugin_type);
|
||||||
|
get_meta_plugin(meta_plugin_type.clone())
|
||||||
|
})
|
||||||
.collect();
|
.collect();
|
||||||
|
|
||||||
if let Some(meta_plugin_configs) = &settings.meta_plugins {
|
if let Some(meta_plugin_configs) = &settings.meta_plugins {
|
||||||
|
|||||||
Reference in New Issue
Block a user