🧹 Clean up logger utility by removing extra whitespace and simplifying arrow function syntax
This commit is contained in:
@@ -131,7 +131,7 @@ export function errorLogger(err, req, res, next) {
|
|||||||
/**
|
/**
|
||||||
* Log uncaught exceptions and unhandled rejections
|
* Log uncaught exceptions and unhandled rejections
|
||||||
*/
|
*/
|
||||||
process.on('uncaughtException', (error) => {
|
process.on('uncaughtException', error => {
|
||||||
logger.error('Uncaught Exception', {
|
logger.error('Uncaught Exception', {
|
||||||
error: error.message,
|
error: error.message,
|
||||||
stack: error.stack
|
stack: error.stack
|
||||||
|
|||||||
Reference in New Issue
Block a user