File tree Expand file tree Collapse file tree 1 file changed +3
-0
lines changed
packages/mongodb-runner/src Expand file tree Collapse file tree 1 file changed +3
-0
lines changed Original file line number Diff line number Diff 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' ,
You can’t perform that action at this time.
0 commit comments