Skip to content

Commit

Permalink
fix: remove deno serve listening msg
Browse files Browse the repository at this point in the history
  • Loading branch information
MasterPtato committed Dec 31, 2024
1 parent 6f3c247 commit b1dd906
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
2 changes: 2 additions & 0 deletions sdks/actor/manager/src/mod.ts
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,8 @@ export default class Manager {
{
port,
hostname: "0.0.0.0",
// Remove "Listening on ..." message
onListen() {},
},
app.fetch,
);
Expand Down
7 changes: 6 additions & 1 deletion sdks/actor/runtime/src/actor.ts
Original file line number Diff line number Diff line change
Expand Up @@ -335,7 +335,12 @@ export abstract class Actor<

const port = this.#getServerPort();
logger().info("server running", { port });
this.#server = Deno.serve({ port, hostname: "0.0.0.0" }, app.fetch);
this.#server = Deno.serve({
port,
hostname: "0.0.0.0",
// Remove "Listening on ..." message
onListen() {},
}, app.fetch);
}

#getServerPort(): number {
Expand Down

0 comments on commit b1dd906

Please sign in to comment.