pub async fn emit(entry: AuditEntry) -> Option<ApiResponse>Expand description
Hand an entry to the registered auditor.
Returns Some(response) only when the auditor is strict
and the write failed — the caller returns it in place of its success
response.
What strict mode does not do: the mutation has already been committed by
the time this runs, and Storage exposes no
transaction spanning both writes. So a strict failure reports a 500 for a
change that did land. It converts a silent hole in the audit log into a
loud one; it is not atomicity. Recording before the mutation would be worse —
it would log changes that never happened.