summaryrefslogtreecommitdiff
path: root/ext/http
diff options
context:
space:
mode:
authorMarvin Hagemeister <marvin@deno.com>2024-09-14 23:30:06 +0200
committerGitHub <noreply@github.com>2024-09-14 23:30:06 +0200
commit597f2d8d4d9b91ee586b9787d6ba52d247e4ff87 (patch)
tree82bfa7272208b81b34e79572f3c9a5bcc6c4658f /ext/http
parentaf2d992ecd2b9320072164b6ee295c31a3194406 (diff)
feat: print `Listening on` messages on stderr instead of stdout (#25491)
Fixes https://github.com/denoland/deno/issues/25114 --------- Signed-off-by: Leo Kettmeir <crowlkats@toaxl.com> Co-authored-by: Bartek IwaƄczuk <biwanczuk@gmail.com> Co-authored-by: crowlkats <crowlkats@toaxl.com> Co-authored-by: Nathan Whitaker <17734409+nathanwhit@users.noreply.github.com>
Diffstat (limited to 'ext/http')
-rw-r--r--ext/http/00_serve.ts6
1 files changed, 3 insertions, 3 deletions
diff --git a/ext/http/00_serve.ts b/ext/http/00_serve.ts
index a49ab2790..87798656f 100644
--- a/ext/http/00_serve.ts
+++ b/ext/http/00_serve.ts
@@ -646,7 +646,7 @@ function serve(arg1, arg2) {
options.onListen(listener.addr);
} else {
// deno-lint-ignore no-console
- console.log(`Listening on ${path}`);
+ console.error(`Listening on ${path}`);
}
});
}
@@ -695,7 +695,7 @@ function serve(arg1, arg2) {
const host = formatHostName(addr.hostname);
// deno-lint-ignore no-console
- console.log(`Listening on ${scheme}${host}:${addr.port}/`);
+ console.error(`Listening on ${scheme}${host}:${addr.port}/`);
}
};
@@ -871,7 +871,7 @@ function registerDeclarativeServer(exports) {
const host = formatHostName(hostname);
// deno-lint-ignore no-console
- console.debug(
+ console.error(
`%cdeno serve%c: Listening on %chttp://${host}:${port}/%c${nThreads}`,
"color: green",
"color: inherit",