Skip to content

Commit 9a51ac7

Browse files
committed
fix: buffered logs not flushed on init error
Signed-off-by: William Phetsinorath <william.phetsinorath-open@interieur.gouv.fr>
1 parent e801fb7 commit 9a51ac7

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

apps/server-nestjs/src/main.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ import { MainModule } from './main.module'
66
async function bootstrap() {
77
const app = await NestFactory.create(MainModule, { bufferLogs: true })
88
app.useLogger(app.get(Logger))
9+
app.flushLogs()
910
await app.listen(process.env.PORT ?? 0)
1011
}
1112
bootstrap()

0 commit comments

Comments
 (0)