Skip to content

Commit

Permalink
Merge pull request #1727 from siiky/feat/lam-1189/log-request-sizes
Browse files Browse the repository at this point in the history
feat: add request size to logs
  • Loading branch information
RafaelTaranto authored Nov 6, 2024
2 parents 1c9cfbb + f3b973e commit babdc0d
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 babdc0d

Please sign in to comment.