Commit c3c965a6 authored by Rémy Coutable's avatar Rémy Coutable

Merge branch 'sh-log-application-controller-exceptions-sentry' into 'master'

Log rescued exceptions to Sentry

See merge request !12638
parents 10723a1b 73d019e1
......@@ -110,6 +110,8 @@ class ApplicationController < ActionController::Base
end
def log_exception(exception)
Raven.capture_exception(exception) if sentry_enabled?
application_trace = ActionDispatch::ExceptionWrapper.new(env, exception).application_trace
application_trace.map!{ |t| " #{t}\n" }
logger.error "\n#{exception.class.name} (#{exception.message}):\n#{application_trace.join}"
......
---
title: Log rescued exceptions to Sentry
merge_request:
author:
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment