Skip to content

Commit

Permalink
lint adjustment for updated json formatted log statements
Browse files Browse the repository at this point in the history
  • Loading branch information
derekwolpert committed Jan 4, 2023
1 parent 286c3a8 commit 2119425
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions api-service/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,10 @@ app.use(cors())
app.use(express.json())
app.use(morgan((tokens, req, res) =>
JSON.stringify({
method: tokens['method'](req, res),
url: tokens['url'](req, res),
status: tokens['status'](req, res),
'content-length': tokens['res'](req, res, 'content-length'),
method: tokens.method(req, res),
url: tokens.url(req, res),
status: tokens.status(req, res),
'content-length': tokens.res(req, res, 'content-length'),
'response-time': `${tokens['response-time'](req, res)} ms`
})
))
Expand Down

0 comments on commit 2119425

Please sign in to comment.