Commit 2af8426c authored by Alf Eaton's avatar Alf Eaton

Update env check

app.get('env') is now 'development' by default
parent 0a676241
Pipeline #2673 passed with stage
in 4 minutes and 29 seconds
......@@ -52,7 +52,7 @@ module.exports = (app = express()) => {
app.use((err, req, res, next) => {
// development error handler, will print stacktrace
if (app.get('env') === 'dev' || app.get('env') === 'test') {
if (app.get('env') === 'development' || app.get('env') === 'test') {
logger.error(err)
logger.error(err.stack)
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment