pub async fn maybe_send_audit(
kafka_opt: Option<&Kafka>,
token: &str,
message: impl Into<String>,
host: Option<Value>,
group: Option<Value>,
)Expand description
Send an audit message if a Kafka instance is configured.
This is a convenience wrapper around send_audit that
handles the common if let Some(kafka) = kafka_opt { ... }
pattern found at every audit call site.