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