pub fn debug_with_data<T: Serialize>( message: String, data: &T, ) -> Result<(), String>
Logs a debug-level message with additional serialized data.