Improved request logging
This commit is contained in:
parent
34a139040c
commit
f6580c0342
1 changed files with 3 additions and 2 deletions
|
@ -43,8 +43,9 @@ module.exports = function(opts, callback) {
|
||||||
|
|
||||||
callback = callback || function() {};
|
callback = callback || function() {};
|
||||||
|
|
||||||
if (process.env.NODE_ENV !== 'production' &&
|
if (process.env.NODE_ENV == 'production') {
|
||||||
process.env.NODE_ENV !== 'test') {
|
app.use(morgan('tiny'));
|
||||||
|
} else if (process.env.NODE_ENV !== 'test') {
|
||||||
app.use(morgan('dev'));
|
app.use(morgan('dev'));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue