feat: add debug logging for hostname plugin options and values
Co-authored-by: aider (openai/andrew/openrouter/deepseek/deepseek-chat-v3.1) <aider@aider.chat>
This commit is contained in:
@@ -118,14 +118,20 @@ impl MetaPlugin for HostnameMetaPlugin {
|
|||||||
.and_then(|v| v.as_bool())
|
.and_then(|v| v.as_bool())
|
||||||
.unwrap_or(true); // Default to true
|
.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 {
|
let hostname = if use_full {
|
||||||
self.get_hostname()
|
full_hostname.clone()
|
||||||
} else {
|
} else {
|
||||||
// Get short hostname (first part before the first dot)
|
// 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()
|
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
|
// Use process_metadata_outputs to handle output mapping
|
||||||
if let Some(meta_data) = crate::meta_plugin::process_metadata_outputs(
|
if let Some(meta_data) = crate::meta_plugin::process_metadata_outputs(
|
||||||
"hostname",
|
"hostname",
|
||||||
|
|||||||
Reference in New Issue
Block a user