Skip to content

Commit

Permalink
feat: add request size to logs
Browse files Browse the repository at this point in the history
  • Loading branch information
siiky committed Oct 25, 2024
1 parent 1c9cfbb commit f3b973e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/routes.js
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ app.use(compression({ threshold: 500 }))
app.use(helmet())
app.use(nocache())
app.use(express.json({ limit: '2mb' }))
app.use(morgan(':method :url :status :response-time ms - :res[content-length]', { stream: logger.stream }))
app.use(morgan(':method :url :status :response-time ms -- :req[content-length]/:res[content-length] b', { stream: logger.stream }))

// app /pair and /ca routes
app.use('/', pairingRoutes)
Expand Down

0 comments on commit f3b973e

Please sign in to comment.