Log client side errors as warns so they don't show in Sentry

This commit is contained in:
James Allen 2016-03-21 13:29:34 +00:00
parent 6beb29f449
commit 8bfc613bb3

View file

@ -232,7 +232,7 @@ module.exports = class Router
res.send()
webRouter.post '/error/client', (req, res, next) ->
logger.error err: req.body.error, meta: req.body.meta, "client side error"
logger.warn err: req.body.error, meta: req.body.meta, "client side error"
res.sendStatus(204)
webRouter.get '*', ErrorController.notFound