From 0b751ca34b07d13f1aa47bda8f6816d0e44578ca Mon Sep 17 00:00:00 2001 From: Andrew Phillips Date: Tue, 26 Aug 2025 21:11:37 -0300 Subject: [PATCH] feat: add debug logging for hostname plugin options and values Co-authored-by: aider (openai/andrew/openrouter/deepseek/deepseek-chat-v3.1) --- src/meta_plugin/hostname.rs | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/src/meta_plugin/hostname.rs b/src/meta_plugin/hostname.rs index c9d51b7..ec40e66 100644 --- a/src/meta_plugin/hostname.rs +++ b/src/meta_plugin/hostname.rs @@ -118,14 +118,20 @@ impl MetaPlugin for HostnameMetaPlugin { .and_then(|v| v.as_bool()) .unwrap_or(true); // Default to true + log::debug!("HOSTNAME: use_full option: {:?}", use_full); + + let full_hostname = self.get_hostname(); + log::debug!("HOSTNAME: full hostname from system: {:?}", full_hostname); + let hostname = if use_full { - self.get_hostname() + full_hostname.clone() } else { // Get short hostname (first part before the first dot) - let full_hostname = self.get_hostname(); full_hostname.split('.').next().unwrap_or(&full_hostname).to_string() }; + log::debug!("HOSTNAME: final hostname to use: {:?}", hostname); + // Use process_metadata_outputs to handle output mapping if let Some(meta_data) = crate::meta_plugin::process_metadata_outputs( "hostname",