diff options
author | Marvin Hagemeister <marvin@deno.com> | 2024-09-14 23:30:06 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-09-14 23:30:06 +0200 |
commit | 597f2d8d4d9b91ee586b9787d6ba52d247e4ff87 (patch) | |
tree | 82bfa7272208b81b34e79572f3c9a5bcc6c4658f /ext/http/00_serve.ts | |
parent | af2d992ecd2b9320072164b6ee295c31a3194406 (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/00_serve.ts')
-rw-r--r-- | ext/http/00_serve.ts | 6 |
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", |