mirror of
https://github.com/Unleash/unleash.git
synced 2024-12-22 19:07:54 +01:00
f5e9ca3bbe
This allows the users of 'unleash-server' to programatically change the logger implemnentation. #175
11 lines
232 B
JavaScript
11 lines
232 B
JavaScript
'use strict';
|
|
|
|
const logger = require('../../logger')('route-utils.js');
|
|
|
|
const catchLogAndSendErrorResponse = (err, res) => {
|
|
logger.error(err);
|
|
res.status(500).end();
|
|
};
|
|
|
|
module.exports = { catchLogAndSendErrorResponse };
|