Commit 2359a529 authored by Kamil Trzciński's avatar Kamil Trzciński

Merge branch '296138-disable-and-remove-pages_update_legacy_storage-feature-flag-2' into 'master'

Properly report backtrace with DiskAccessDenied

See merge request gitlab-org/gitlab!59662
parents 024e89e5 e05faa85
......@@ -6,7 +6,7 @@ module Gitlab
DiskAccessDenied = Class.new(StandardError)
def path
::Gitlab::ErrorTracking.track_exception(DiskAccessDenied.new) if disk_access_denied?
report_denied_disk_access
super
end
......@@ -22,6 +22,12 @@ module Gitlab
::Gitlab::Runtime.web_server? && !::Gitlab::Runtime.test_suite?
end
def report_denied_disk_access
raise DiskAccessDenied if disk_access_denied?
rescue => e
::Gitlab::ErrorTracking.track_exception(e)
end
end
end
end
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