We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c13cc02 commit b309a18Copy full SHA for b309a18
packages/mongodb-memory-server-core/src/util/getport/index.ts
@@ -1,5 +1,8 @@
1
import resolveConfig, { ResolveConfigVariables, envToBool } from '../resolveConfig';
2
import * as net from 'node:net';
3
+import debug from 'debug';
4
+
5
+const log = debug('MongoMS:GetPort');
6
7
/** Linux min port that does not require root permissions */
8
export const MIN_PORT = 1024;
@@ -57,6 +60,7 @@ export async function getFreePort(
57
60
}
58
61
59
62
const exp_net0listen = envToBool(resolveConfig(ResolveConfigVariables.EXP_NET0LISTEN));
63
+ log('EXP_NET0LISTEN', exp_net0listen);
64
65
let tries = 0;
66
while (tries <= max_tries) {
0 commit comments