diff --git a/pages/api/log/index.js b/pages/api/log/index.js index ba814c75c..25150b917 100644 --- a/pages/api/log/index.js +++ b/pages/api/log/index.js @@ -20,7 +20,7 @@ export default async (req, res) => { const { id } = await models.log.create({ data: { level: level.toUpperCase(), name, message, env, context } }) - slackPostMessage({ id, ...req.body }) + slackPostMessage({ id, ...req.body }).catch(console.error) return res.status(200).json({ status: 200, message: 'ok' }) }