Skip to main content

log_audit

Function log_audit 

Source
pub fn log_audit(cli: &Cli, op: &str, key: Option<&str>, details: Option<&str>)
Expand description

Convenience helper: log an audit event using the CLI context.

Opens the audit database, logs the event, and silently ignores any errors. This is safe to call from any command — it never fails the parent operation.