MCPcopy Index your code
hub / github.com/nodejs/node / emitWarningIfNeeded

Function emitWarningIfNeeded

lib/internal/util/debuglog.js:48–55  ·  view source on GitHub ↗
(set)

Source from the content-addressed store, hash-verified

46// Emits warning when user sets
47// NODE_DEBUG=http or NODE_DEBUG=http2.
48function emitWarningIfNeeded(set) {
49 if ('HTTP' === set || 'HTTP2' === set) {
50 process.emitWarning('Setting the NODE_DEBUG environment variable ' +
51 'to \'' + StringPrototypeToLowerCase(set) + '\' can expose sensitive ' +
52 'data (such as passwords, tokens and authentication headers) ' +
53 'in the resulting log.');
54 }
55}
56
57const noop = () => {};
58

Callers 2

debuglogImplFunction · 0.85
initFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…