Skip to content

Commit

Permalink
log the entire body on timeout
Browse files Browse the repository at this point in the history
  • Loading branch information
Idokah committed Feb 18, 2024
1 parent 8d21e38 commit c6146f2
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions libs/velo-external-db-core/src/router.ts
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,7 @@ export const createRouter = () => {
const NinetySecondsInMs = 90 * 1000
res.setTimeout(NinetySecondsInMs, () => {
console.warn(`Request has timed out - ${req.method} ${req.url}`)
console.dir({ body: req.body }, { depth: 3 })
res.status(408).send('Request Timeout')
})
next()
Expand Down

0 comments on commit c6146f2

Please sign in to comment.