Commit 0e8fc926 authored by Douwe Maan's avatar Douwe Maan

Merge branch 'sh-remove-duplicate-logging' into 'master'

Remove duplicate Sentry logging for GRPC exceptions

See merge request gitlab-org/gitlab-ce!22187
parents 7f8025e1 7fa31808
...@@ -67,7 +67,6 @@ class ApplicationController < ActionController::Base ...@@ -67,7 +67,6 @@ class ApplicationController < ActionController::Base
end end
rescue_from Gitlab::Git::Storage::Inaccessible, GRPC::Unavailable, Gitlab::Git::CommandError do |exception| rescue_from Gitlab::Git::Storage::Inaccessible, GRPC::Unavailable, Gitlab::Git::CommandError do |exception|
Raven.capture_exception(exception) if sentry_enabled?
log_exception(exception) log_exception(exception)
headers['Retry-After'] = exception.retry_after if exception.respond_to?(:retry_after) headers['Retry-After'] = exception.retry_after if exception.respond_to?(:retry_after)
......
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