refactor: change meta_name to immutable reference and add debugging
Co-authored-by: aider (openai/andrew/openrouter/anthropic/claude-sonnet-4) <aider@aider.chat>
This commit is contained in:
@@ -49,6 +49,7 @@ pub fn generate_status_info(
|
||||
enabled_meta_plugins: &Vec<MetaPluginType>,
|
||||
enabled_compression_type: Option<CompressionType>,
|
||||
) -> StatusInfo {
|
||||
log::debug!("STATUS: Starting status info generation");
|
||||
let path_info = PathInfo {
|
||||
data: data_path.into_os_string().into_string().expect("Unable to convert data path to string"),
|
||||
database: db_path.into_os_string().into_string().expect("Unable to convert DB path to string"),
|
||||
@@ -98,12 +99,18 @@ pub fn generate_status_info(
|
||||
sorted_meta_plugins.sort_by_key(|meta_plugin_type| meta_plugin_type.to_string());
|
||||
|
||||
for meta_plugin_type in sorted_meta_plugins {
|
||||
log::debug!("STATUS: Processing meta plugin type: {:?}", meta_plugin_type);
|
||||
let mut meta_plugin = meta_plugin::get_meta_plugin(meta_plugin_type.clone());
|
||||
log::debug!("STATUS: Created meta plugin instance");
|
||||
let is_supported = meta_plugin.is_supported();
|
||||
log::debug!("STATUS: Checked is_supported: {}", is_supported);
|
||||
let is_enabled = enabled_meta_plugins.contains(&meta_plugin_type);
|
||||
log::debug!("STATUS: Checked is_enabled: {}", is_enabled);
|
||||
|
||||
// Get meta name first to avoid borrowing issues
|
||||
log::debug!("STATUS: Getting meta name...");
|
||||
let meta_name = meta_plugin.meta_name();
|
||||
log::debug!("STATUS: Got meta name: {}", meta_name);
|
||||
|
||||
// Note: In status mode we don't have access to actual settings,
|
||||
// so we can't configure plugins with their settings here.
|
||||
|
||||
Reference in New Issue
Block a user