diff options
author | David Sherret <dsherret@users.noreply.github.com> | 2024-08-20 15:14:37 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-08-20 15:14:37 -0400 |
commit | a7c002ae634b20a2f84c90417327a88c9ac2df99 (patch) | |
tree | c21a179412ee70f59eb0c38acfbe5d4998870224 /ext/node/polyfills/internal/util/debuglog.ts | |
parent | 2f47b4d1fd8e37a5e45bc1b8f3623708e0f95e2e (diff) |
chore: enable no-console dlint rule (#25113)
Diffstat (limited to 'ext/node/polyfills/internal/util/debuglog.ts')
-rw-r--r-- | ext/node/polyfills/internal/util/debuglog.ts | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/ext/node/polyfills/internal/util/debuglog.ts b/ext/node/polyfills/internal/util/debuglog.ts index 9bbaed606..bbaba7b6f 100644 --- a/ext/node/polyfills/internal/util/debuglog.ts +++ b/ext/node/polyfills/internal/util/debuglog.ts @@ -30,6 +30,7 @@ export function initializeDebugEnv(debugEnv: string) { // NODE_DEBUG=http or NODE_DEBUG=http2. function emitWarningIfNeeded(set: string) { if ("HTTP" === set || "HTTP2" === set) { + // deno-lint-ignore no-console console.warn( "Setting the NODE_DEBUG environment variable " + "to '" + set.toLowerCase() + "' can expose sensitive " + @@ -50,6 +51,7 @@ function debuglogImpl( emitWarningIfNeeded(set); debugImpls[set] = function debug(...args: unknown[]) { const msg = args.map((arg) => inspect(arg)).join(" "); + // deno-lint-ignore no-console console.error("%s %s: %s", set, String(Deno.pid), msg); }; } else { |