mirror of
https://github.com/rcourtman/Pulse.git
synced 2026-05-20 01:01:20 +00:00
The audit logging feature was showing the UI for Pro users but the
SQLiteLogger was never actually initialized - it fell back to the
ConsoleLogger which only writes to console and returns empty arrays
for queries.
This fix:
- Adds initAuditLoggerIfLicensed() helper to license_handlers.go
- Calls it when loading a persisted license at startup
- Calls it when activating a new license via API
- Creates SQLiteLogger with 90-day default retention when audit_logging
feature is enabled
The audit.db will be created in {dataDir}/audit/ when Pro is licensed.
|
||
|---|---|---|
| .. | ||
| agents | ||
| audit | ||
| auth | ||
| discovery | ||
| fsfilters | ||
| metrics | ||
| pbs | ||
| pmg | ||
| proxmox | ||
| reporting | ||
| server | ||
| tlsutil | ||