remove stack trace from production
This commit is contained in:
@ -255,10 +255,7 @@ R.keys(passportProviders).map(function(strategy) {
|
|||||||
* 500 Error Handler.
|
* 500 Error Handler.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
// if (process.env.NODE_ENV === 'development') {
|
if (process.env.NODE_ENV === 'development') {
|
||||||
if (true) { // eslint-disable-line
|
|
||||||
// NOTE(berks): adding pmx here for Beta test. Remove for production
|
|
||||||
app.use(pmx.expressErrorHandler());
|
|
||||||
app.use(errorHandler({
|
app.use(errorHandler({
|
||||||
log: true
|
log: true
|
||||||
}));
|
}));
|
||||||
|
Reference in New Issue
Block a user