Prefix morgan logs with source

This commit is contained in:
Johannes Zellner
2015-10-11 16:39:37 +02:00
parent 449231c791
commit f0fefab8ad
2 changed files with 3 additions and 3 deletions

View File

@@ -116,8 +116,8 @@ function initializeExpressSync() {
router.get ('/api/v1/logout', logout);
app
.use(middleware.morgan('dev', { immediate: false }))
.use(middleware.timeout(10000))
.use(middleware.morgan('SimpleAuth :method :url :status :response-time ms - :res[content-length]', { immediate: false }))
.use(json)
.use(router)
.use(middleware.lastMile());