fn audit( state: &AppState, leader: &Leader, target: &str, ok: bool, error: Option<&str>, note: &str, )