From a7c002ae634b20a2f84c90417327a88c9ac2df99 Mon Sep 17 00:00:00 2001 From: David Sherret Date: Tue, 20 Aug 2024 15:14:37 -0400 Subject: chore: enable no-console dlint rule (#25113) --- ext/node/polyfills/internal/util/debuglog.ts | 2 ++ 1 file changed, 2 insertions(+) (limited to 'ext/node/polyfills/internal/util/debuglog.ts') 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 { -- cgit v1.2.3