better logging

This commit is contained in:
Thomas Ruoff
2022-10-11 12:17:22 +02:00
parent 4b313d2df3
commit f565c03d22

View File

@@ -21,7 +21,7 @@ export default async function userHandler(
booking = await createBooking(req.body)
} catch (e) {
// TODO: add validation for booking on same day
log.error('Failed to store booking', e)
log.error('Failed to store booking with', e.toString())
res.status(500).end(`Internal Server Error...Guru is meditating...`)
return
}