Skip to content

Commit 72704a3

Browse files
committed
refactor(node): trim comment in standalone
1 parent bd197a1 commit 72704a3

1 file changed

Lines changed: 3 additions & 5 deletions

File tree

packages/integrations/node/src/standalone.ts

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -32,11 +32,9 @@ export default function standalone(
3232
const server = createServer(handler, host, port);
3333
server.server.listen(port, host);
3434
if (process.env.ASTRO_NODE_LOGGING !== 'disabled') {
35-
// Resolve the user-configured logger before logging the startup message.
36-
// getLogger() resolves before the OS finishes binding the port (and emitting
37-
// 'listening'), so logListeningOn's once('listening') handler is registered
38-
// in time. standalone() stays synchronous so callers receive the server object
39-
// immediately, as they did before.
35+
// Resolve the logger before the 'listening' event fires so the startup message
36+
// uses the correct destination. standalone() stays synchronous so callers get
37+
// the server object immediately.
4038
app.pipeline.getLogger().then(() => logListeningOn(app.adapterLogger, server.server, host));
4139
}
4240
server.server.on('close', () => {

0 commit comments

Comments
 (0)