mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-11-30 21:40:39 +03:00
Merge pull request #4075 from jaswilli/morgan
Adjust morgan call to avoid deprecation warning
This commit is contained in:
commit
a3093b9b42
@ -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));
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user