Skip to content

Commit 5acb9c7

Browse files
author
hirsch88
committed
Refactor app and server logging
1 parent 35fe95d commit 5acb9c7

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

src/core/App.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,7 @@ export class App {
7474
this.log.info('Starting app...');
7575
this.server = new Server(this.bootstrapApp.startServer(this.express));
7676
this.server.use(this.express);
77+
this.log.info('App is ready!');
7778
}
7879

7980
}

src/core/Server.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -64,10 +64,10 @@ export class Server {
6464
* @memberof Server
6565
*/
6666
public onStartUp(app: express.Application): void {
67-
this.log.info(``);
68-
this.log.info(`Aloha, your app is ready on ${app.get('host')}:${app.get('port')}${process.env.APP_URL_PREFIX}`);
69-
this.log.info(`To shut it down, press <CTRL> + C at any time.`);
70-
this.log.info(``);
67+
this.log.debug(``);
68+
this.log.debug(`Aloha, your app is ready on ${app.get('host')}:${app.get('port')}${process.env.APP_URL_PREFIX}`);
69+
this.log.debug(`To shut it down, press <CTRL> + C at any time.`);
70+
this.log.debug(``);
7171
this.log.debug('-------------------------------------------------------');
7272
this.log.debug(`Environment : ${Environment.getNodeEnv()}`);
7373
this.log.debug(`Version : ${Environment.getPkg().version}`);

0 commit comments

Comments
 (0)