We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 47c5a3a commit c996ccbCopy full SHA for c996ccb
1 file changed
src/audit.ts
@@ -347,6 +347,10 @@ export class AuditLogger {
347
*/
348
private async acquireFileLock(): Promise<void> {
349
const lockPath = join(this.logDir, AuditLogger.FILE_LOCK_DIR);
350
+ // #3353: Ensure audit directory exists before acquiring file lock
351
+ if (!existsSync(this.logDir)) {
352
+ await mkdir(this.logDir, { recursive: true });
353
+ }
354
const deadline = Date.now() + AuditLogger.FILE_LOCK_TIMEOUT_MS;
355
356
while (Date.now() < deadline) {
0 commit comments