Open naftis opened 1 day ago
Currently, errors happening in handlers aren't being logged at all. If an error happens for example here, nothing is eventually console.logging it.
We could add this (or similar) to the createServer function:
server.ext('onPreResponse', (request, reply) => { if (request.response instanceof Error) { console.error(request.response) } return reply.continue })
to get a log of the actual error.
Currently, errors happening in handlers aren't being logged at all. If an error happens for example here, nothing is eventually console.logging it.
We could add this (or similar) to the createServer function:
to get a log of the actual error.