summaryrefslogtreecommitdiff
path: root/ext/node
diff options
context:
space:
mode:
Diffstat (limited to 'ext/node')
-rw-r--r--ext/node/polyfills/_utils.ts1
-rw-r--r--ext/node/polyfills/http.ts1
-rw-r--r--ext/node/polyfills/http2.ts4
-rw-r--r--ext/node/polyfills/internal/util/debuglog.ts2
-rw-r--r--ext/node/polyfills/testing.ts1
-rw-r--r--ext/node/polyfills/util.ts1
-rw-r--r--ext/node/polyfills/worker_threads.ts2
7 files changed, 11 insertions, 1 deletions
diff --git a/ext/node/polyfills/_utils.ts b/ext/node/polyfills/_utils.ts
index 78b9bdddc..b50c113e1 100644
--- a/ext/node/polyfills/_utils.ts
+++ b/ext/node/polyfills/_utils.ts
@@ -42,6 +42,7 @@ export function warnNotImplemented(msg?: string) {
const message = msg
? `Warning: Not implemented: ${msg}`
: "Warning: Not implemented";
+ // deno-lint-ignore no-console
console.warn(message);
}
diff --git a/ext/node/polyfills/http.ts b/ext/node/polyfills/http.ts
index 920f3a5b0..76291490e 100644
--- a/ext/node/polyfills/http.ts
+++ b/ext/node/polyfills/http.ts
@@ -1836,6 +1836,7 @@ export class ServerImpl extends EventEmitter {
}
setTimeout() {
+ // deno-lint-ignore no-console
console.error("Not implemented: Server.setTimeout()");
}
diff --git a/ext/node/polyfills/http2.ts b/ext/node/polyfills/http2.ts
index baa2c6e21..98edf40f4 100644
--- a/ext/node/polyfills/http2.ts
+++ b/ext/node/polyfills/http2.ts
@@ -127,6 +127,7 @@ type Http2Headers = Record<string, string | string[]>;
const debugHttp2Enabled = false;
function debugHttp2(...args) {
if (debugHttp2Enabled) {
+ // deno-lint-ignore no-console
console.log(...args);
}
}
@@ -1636,16 +1637,19 @@ export class Http2Server extends Server {
this.emit("stream", stream, headers);
return await stream._deferred.promise;
} catch (e) {
+ // deno-lint-ignore no-console
console.log(">>> Error in serveHttpOnConnection", e);
}
return new Response("");
},
() => {
+ // deno-lint-ignore no-console
console.log(">>> error");
},
() => {},
);
} catch (e) {
+ // deno-lint-ignore no-console
console.log(">>> Error in Http2Server", e);
}
},
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 {
diff --git a/ext/node/polyfills/testing.ts b/ext/node/polyfills/testing.ts
index 92900e632..901c38ed3 100644
--- a/ext/node/polyfills/testing.ts
+++ b/ext/node/polyfills/testing.ts
@@ -28,6 +28,7 @@ class NodeTestContext {
}
diagnostic(message) {
+ // deno-lint-ignore no-console
console.log("DIAGNOSTIC:", message);
}
diff --git a/ext/node/polyfills/util.ts b/ext/node/polyfills/util.ts
index eee171ccf..cb4e6498a 100644
--- a/ext/node/polyfills/util.ts
+++ b/ext/node/polyfills/util.ts
@@ -234,6 +234,7 @@ function timestamp(): string {
*/
// deno-lint-ignore no-explicit-any
export function log(...args: any[]) {
+ // deno-lint-ignore no-console
console.log("%s - %s", timestamp(), ReflectApply(format, undefined, args));
}
diff --git a/ext/node/polyfills/worker_threads.ts b/ext/node/polyfills/worker_threads.ts
index 3519ae217..eaabe9cd7 100644
--- a/ext/node/polyfills/worker_threads.ts
+++ b/ext/node/polyfills/worker_threads.ts
@@ -47,7 +47,7 @@ const {
const debugWorkerThreads = false;
function debugWT(...args) {
if (debugWorkerThreads) {
- // deno-lint-ignore prefer-primordials
+ // deno-lint-ignore prefer-primordials no-console
console.log(...args);
}
}