File tree Expand file tree Collapse file tree
packages/integrations/node/src Expand file tree Collapse file tree Original file line number Diff line number Diff 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' , ( ) => {
You can’t perform that action at this time.
0 commit comments