Skip to content

Commit

Permalink
add log to show start up time in seconds
Browse files Browse the repository at this point in the history
  • Loading branch information
mishraomp authored Nov 25, 2024
1 parent e0b5d73 commit 90de420
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions backend/src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ const logger = new Logger('NestApplication');
bootstrap().then(async (app: NestExpressApplication) => {
await app.listen(3000);
logger.log(`Listening on ${await app.getUrl()}`);
logger.log(`Process start up took ${process.uptime()} seconds`);
}).catch(err => {
logger.error(err);
});

0 comments on commit 90de420

Please sign in to comment.