Skip to content

Commit

Permalink
Disable the default console output when HTTP servers listen.
Browse files Browse the repository at this point in the history
  • Loading branch information
jaydenseric committed Jan 24, 2025
1 parent 2dc1a4d commit 7f4f069
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions serve.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,8 @@ export default async function serve({

return Deno.serve(
{
// Disable the default console output.
onListen() {},
port,
signal,
},
Expand Down
2 changes: 2 additions & 0 deletions test/serveProjectFiles.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@ export default function serveProjectFiles(signal) {

return Deno.serve(
{
// Disable the default console output.
onListen() {},
port: 0,
signal,
},
Expand Down

0 comments on commit 7f4f069

Please sign in to comment.