Skip to content
Snippets Groups Projects
Commit 70967e35 authored by david.bauer's avatar david.bauer :fire:
Browse files

Add: Logging Endpoint for identifying code loading issues

parent e0af9480
No related branches found
No related tags found
No related merge requests found
include:
- project: sre/ci-building-blocks
file: nodejs.yml
ref: 3.4.0
unit tests:
extends: .unit tests
......
export default async function logErrors (fastify) {
fastify.post('/log', async (req, reply) => {
req.log.info({ ...req.body, userAgent: req.headers['user-agent'] })
reply.send()
})
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment