Skip to content

Commit 1b669ad

Browse files
committed
style(lockfile): add log when "readout" is for not for self
1 parent 5733a0f commit 1b669ad

File tree

1 file changed

+2
-0
lines changed
  • packages/mongodb-memory-server-core/src/util

1 file changed

+2
-0
lines changed

packages/mongodb-memory-server-core/src/util/lockfile.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,8 @@ export class LockFile {
8181
return !this.files.has(file) ? LockFileStatus.available : LockFileStatus.lockedSelf;
8282
}
8383

84+
log(`checkLock: Lock File Aready exists, for an different process: "${readout}"`);
85+
8486
return utils.isAlive(readout) ? LockFileStatus.lockedDifferent : LockFileStatus.available;
8587
}
8688

0 commit comments

Comments
 (0)