feat: add request size to logs
This commit is contained in:
parent
ae30f2e704
commit
fdae38aed8
1 changed files with 1 additions and 1 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue