Merge pull request #4075 from jaswilli/morgan

Adjust morgan call to avoid deprecation warning
This commit is contained in:
Hannah Wolfe 2014-09-19 20:39:05 +01:00
commit a3093b9b42

View File

@ -256,9 +256,9 @@ setupMiddleware = function (server, adminExpress) {
// Logging configuration
if (logging !== false) {
if (expressServer.get('env') !== 'development') {
expressServer.use(logger(logging || {}));
expressServer.use(logger('combined', logging));
} else {
expressServer.use(logger(logging || 'dev'));
expressServer.use(logger('dev', logging));
}
}