Skip to content

Commit 217cb6f

Browse files
committed
fixup: improve debugging
1 parent bd016d8 commit 217cb6f

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

packages/mongodb-runner/src/mongoserver.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -306,10 +306,13 @@ export class MongoServer {
306306
const runnerColl = client
307307
.db(isMongoS ? 'config' : 'local')
308308
.collection<SerializedServerProperties>('mongodbrunner');
309+
debug('ensuring metadata collection entry', insertedInfo, { isMongoS });
309310
if (mode === 'insert-new') {
310311
await runnerColl.insertOne(insertedInfo);
312+
debug('inserted metadata collection entry', insertedInfo);
311313
} else {
312314
const match = await runnerColl.findOne();
315+
debug('read metadata collection entry', insertedInfo, match);
313316
if (!match) {
314317
throw new Error(
315318
'Cannot find mongodbrunner entry, assuming that this instance was not started by mongodb-runner',

0 commit comments

Comments
 (0)