manually report exception to sentry

This commit is contained in:
Bilal
2020-07-06 15:37:59 +02:00
parent 7cdb814d6d
commit d3a240464d
2 changed files with 5 additions and 1 deletions

View File

@@ -5,6 +5,8 @@ class Api::UserTokenController < Knock::AuthTokenController
# Catch exception and return JSON-formatted error
def return_error(exception)
Raven.capture_exception(exception)
logger.error "==Handled======="
logger.error exception.message
logger.error exception.backtrace.join("\n")