Skip to content

Commit

Permalink
refactor(server): console.log error before using logger
Browse files Browse the repository at this point in the history
  • Loading branch information
Kalovelo committed Oct 3, 2022
1 parent dd450c7 commit 560a4a3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ const start = (port: string | number) => {
logger.info(`Bot service running at port ${port}`);
});
} catch (err) {
console.log('Fatal error', err);
logger.error(`Fatal error: ${err.toString()}`);
console.log(`Fatal error: ${err.toString()}`);
process.exit();
}
};
Expand Down

0 comments on commit 560a4a3

Please sign in to comment.