Skip to content

Commit 6ae0c73

Browse files
committed
style(resolveConfig): dont enable debug mode twice
fixes #745
1 parent 98d8046 commit 6ae0c73

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,7 @@ if (envToBool(resolveConfig(ResolveConfigVariables.DEBUG))) {
170170
findPackageJson();
171171

172172
// enable debug if "config.mongodbMemoryServer.debug" is true
173-
if (envToBool(resolveConfig(ResolveConfigVariables.DEBUG))) {
173+
if (envToBool(resolveConfig(ResolveConfigVariables.DEBUG)) && !debug.enabled('MongoMS:*')) {
174174
debug.enable('MongoMS:*');
175175
log('Debug Mode Enabled, through package.json');
176176
}

0 commit comments

Comments
 (0)