mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-02-10 23:36:14 -05:00
Merge pull request #4075 from jaswilli/morgan
Adjust morgan call to avoid deprecation warning
This commit is contained in:
commit
a3093b9b42
1 changed files with 2 additions and 2 deletions
|
@ -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…
Add table
Reference in a new issue