Skip to content

Commit 00740ac

Browse files
committed
fix(MongoInstance): stop: use "this.debug" over "log"
1 parent 83626e0 commit 00740ac

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -307,7 +307,7 @@ export class MongoInstance extends EventEmitter implements ManagerBase {
307307
this.debug('stop');
308308

309309
if (!this.mongodProcess && !this.killerProcess) {
310-
log('stop: nothing to shutdown, returning');
310+
this.debug('stop: nothing to shutdown, returning');
311311

312312
return false;
313313
}
@@ -318,7 +318,7 @@ export class MongoInstance extends EventEmitter implements ManagerBase {
318318
if (this.isReplSet && this.isInstancePrimary) {
319319
let con: MongoClient | undefined;
320320
try {
321-
log('stop: trying replSetStepDown');
321+
this.debug('stop: trying replSetStepDown');
322322
const port = this.instanceOpts.port;
323323
const ip = this.instanceOpts.ip;
324324
assertion(

0 commit comments

Comments
 (0)