Skip to content

Commit

Permalink
Set res codes to 500 to see how they look in Logflare
Browse files Browse the repository at this point in the history
  • Loading branch information
chasers committed Jun 30, 2021
1 parent c29f1a1 commit 0f527a7
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion pages/api/error-console.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,5 @@ export default function handler(req, res) {
console.error(e)
}

res.status(200).json({ error: 'true' })
res.status(500).json({ error: 'true' })
}
2 changes: 1 addition & 1 deletion pages/api/error-pino-logflare.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,5 @@ export default function handler(req, res) {
logger.error(e)
}

res.status(200).json({ error: 'true' })
res.status(500).json({ error: 'true' })
}
2 changes: 1 addition & 1 deletion pages/api/error-pino.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,5 @@ export default function handler(req, res) {
onlyPino.error(e)
}

res.status(200).json({ error: 'true' })
res.status(500).json({ error: 'true' })
}

0 comments on commit 0f527a7

Please sign in to comment.