pub async fn log_debug( command: &str, message: &str, details: Option<&str>, ) -> Result<(), String>
Helper function to log debug with the global logger