feat: add debug logs for text plugin initialization and finalization
Co-authored-by: aider (openai/andrew/openrouter/deepseek/deepseek-chat-v3.1) <aider@aider.chat>
This commit is contained in:
@@ -32,6 +32,8 @@ impl TextMetaPlugin {
|
||||
outputs,
|
||||
);
|
||||
|
||||
log::debug!("TEXT: Plugin initialized with outputs: {:?}", base.outputs);
|
||||
|
||||
let max_buffer_size = base.options.get("max_buffer_size")
|
||||
.and_then(|v| v.as_u64())
|
||||
.unwrap_or(PIPESIZE as u64) as usize;
|
||||
@@ -303,9 +305,10 @@ impl MetaPlugin for TextMetaPlugin {
|
||||
if self.is_binary_content == Some(false) {
|
||||
log::debug!("TEXT: Content is text, outputting word and line counts");
|
||||
let word_line_metadata = self.output_word_line_counts();
|
||||
log::debug!("TEXT: Word line metadata: {:?}", word_line_metadata);
|
||||
metadata.extend(word_line_metadata);
|
||||
} else {
|
||||
log::debug!("TEXT: Content is not text, not outputting word and line counts");
|
||||
log::debug!("TEXT: Content is not text, not outputting word and line counts. is_binary_content: {:?}", self.is_binary_content);
|
||||
}
|
||||
|
||||
// Drop the buffer since we're done with it
|
||||
@@ -314,6 +317,7 @@ impl MetaPlugin for TextMetaPlugin {
|
||||
// Mark as finalized
|
||||
self.is_finalized = true;
|
||||
|
||||
log::debug!("TEXT: Finalizing with metadata: {:?}", metadata);
|
||||
MetaPluginResponse {
|
||||
metadata,
|
||||
is_finalized: true,
|
||||
|
||||
Reference in New Issue
Block a user