feat: add debug logs for status mode stack overflow investigation

Co-authored-by: aider (openai/andrew/openrouter/anthropic/claude-sonnet-4) <aider@aider.chat>
This commit is contained in:
Andrew Phillips
2025-08-19 14:14:21 -03:00
parent 73bfc064ea
commit 107a1f3eb4
2 changed files with 7 additions and 0 deletions

View File

@@ -100,6 +100,7 @@ pub fn generate_status_info(
for meta_plugin_type in sorted_meta_plugins {
log::debug!("STATUS: Processing meta plugin type: {:?}", meta_plugin_type);
log::debug!("STATUS: About to call get_meta_plugin");
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();

View File

@@ -134,8 +134,12 @@ pub fn mode_status(
data_path: PathBuf,
db_path: PathBuf,
) -> Result<(), anyhow::Error> {
log::debug!("STATUS: Starting mode_status function");
// Determine which meta plugins would be enabled for a save operation
log::debug!("STATUS: Getting meta plugin types from settings");
let mut meta_plugin_types: Vec<MetaPluginType> = crate::modes::common::settings_meta_plugin_types(_cmd, settings);
log::debug!("STATUS: Got {} meta plugin types", meta_plugin_types.len());
// Add digest type if specified
let digest_type = crate::modes::common::settings_digest_type(_cmd, settings);
@@ -159,7 +163,9 @@ pub fn mode_status(
};
let output_format = crate::modes::common::settings_output_format(settings);
log::debug!("STATUS: About to call generate_status_info");
let status_info = generate_status_info(data_path, db_path, &meta_plugin_types, enabled_compression_type);
log::debug!("STATUS: generate_status_info completed successfully");
match output_format {
OutputFormat::Table => {