Skip to content

Commit aff6838

Browse files
committed
fix(resolveConfig): fix debug enable
1 parent 4845c7e commit aff6838

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ export function envToBool(env: string = ''): boolean {
125125
}
126126

127127
// enable debug if "MONGOMS_DEBUG" is true
128-
if (envToBool(resolveConfig(ResolveConfigVariables.DEBUG)) && !debug.enabled) {
128+
if (envToBool(resolveConfig(ResolveConfigVariables.DEBUG))) {
129129
debug.enable('MongoMS:*');
130130
log('Debug Mode Enabled, through Environment Variable');
131131
}
@@ -134,7 +134,7 @@ if (envToBool(resolveConfig(ResolveConfigVariables.DEBUG)) && !debug.enabled) {
134134
findPackageJson();
135135

136136
// enable debug if "config.mongodbMemoryServer.debug" is true
137-
if (envToBool(resolveConfig(ResolveConfigVariables.DEBUG)) && !debug.enabled) {
137+
if (envToBool(resolveConfig(ResolveConfigVariables.DEBUG))) {
138138
debug.enable('MongoMS:*');
139139
log('Debug Mode Enabled, through package.json');
140140
}

0 commit comments

Comments
 (0)