Skip to content

Commit b309a18

Browse files
committed
style(getport): add log whether "EXP_NET0LISTEN" is active or not
1 parent c13cc02 commit b309a18

File tree

1 file changed

+4
-0
lines changed
  • packages/mongodb-memory-server-core/src/util/getport

1 file changed

+4
-0
lines changed

packages/mongodb-memory-server-core/src/util/getport/index.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
import resolveConfig, { ResolveConfigVariables, envToBool } from '../resolveConfig';
22
import * as net from 'node:net';
3+
import debug from 'debug';
4+
5+
const log = debug('MongoMS:GetPort');
36

47
/** Linux min port that does not require root permissions */
58
export const MIN_PORT = 1024;
@@ -57,6 +60,7 @@ export async function getFreePort(
5760
}
5861

5962
const exp_net0listen = envToBool(resolveConfig(ResolveConfigVariables.EXP_NET0LISTEN));
63+
log('EXP_NET0LISTEN', exp_net0listen);
6064

6165
let tries = 0;
6266
while (tries <= max_tries) {

0 commit comments

Comments
 (0)