diff --git a/components/server/src/audit/AuditLogService.ts b/components/server/src/audit/AuditLogService.ts index c34639628a62f9..3b3b5d1085bb97 100644 --- a/components/server/src/audit/AuditLogService.ts +++ b/components/server/src/audit/AuditLogService.ts @@ -53,16 +53,7 @@ export class AuditLogService { action: method, args: argsScrubbed, }; - // The args param contains workspace IDs and other sensitive data. Since - // it's quite hard to detect them, best way is to simply not log it at - // all. It's still part of the audit database but does not appear in the - // component logs. - const logEntryForLogging = { - ...logEntry, - args: ["[redacted]"], - }; - - log.info("audit", new TrustedValue(logEntryForLogging)); + log.info("audit", new TrustedValue(logEntry)); await this.dbAuditLog.recordAuditLog(logEntry); }