pub async fn record(pool: &AnyPool, state: &AuditState, event: AuditEvent)Expand description
Record an audit event to the database.
When the database insert fails, the error is logged but not propagated to avoid failing EST operations due to audit backend issues (unless the overflow policy requires halting).