0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-03-11 02:12:21 -05:00

Adjust morgan call to avoid deprecation warning

No Issue
- Change the invocation of the morgan logging package to
  conform to the new function signature introduced in
  morgan 1.2.0.
This commit is contained in:
Jason Williams 2014-09-19 16:31:22 +00:00
parent 5cdb6510ae
commit 12957b1918

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));
}
}