fix morgan logger skipping
This commit is contained in:
parent
232f4d0d0a
commit
0132e8dfc1
1 changed files with 3 additions and 1 deletions
|
|
@ -50,7 +50,9 @@ function dbNotify () {
|
|||
.catch(e => console.error('Error: lamassu-server not responding'))
|
||||
}
|
||||
|
||||
app.use(morgan('dev'))
|
||||
const skip = (req, res) => req.path === '/api/status/' && res.statusCode === 200
|
||||
|
||||
app.use(morgan('dev', {skip}))
|
||||
app.use(cookieParser())
|
||||
app.use(register)
|
||||
if (!devMode) app.use(authenticate)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue