This commit is contained in:
overcuriousity
2025-08-09 22:48:29 +02:00
parent b8311e152d
commit b1c31379b2
5 changed files with 5 additions and 25 deletions

View File

@@ -91,7 +91,6 @@ class AuditService {
}
private loadConfig(): AuditConfig {
// Use the env() helper function that handles both server and client contexts
const enabledFlag = env('FORENSIC_AUDIT_ENABLED', 'false');
const detailLevel = env('FORENSIC_AUDIT_DETAIL_LEVEL', 'standard') as 'minimal' | 'standard' | 'verbose';
const retentionHours = parseInt(env('FORENSIC_AUDIT_RETENTION_HOURS', '72') || '72', 10);
@@ -398,9 +397,7 @@ class AuditService {
export const auditService = new AuditService();
export type { ProcessedAuditTrail, CompressedAuditEntry };
// Add this at the bottom of auditService.ts (after the existing exports)
// Export debug utilities for troubleshooting
export const debugAuditService = {
getDebugInfo() {
return auditService.getDebugInfo();