diff options
Diffstat (limited to 'app/models/upload.rb')
-rw-r--r-- | app/models/upload.rb | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/app/models/upload.rb b/app/models/upload.rb index 20860f14b83..a3cd8ff5221 100644 --- a/app/models/upload.rb +++ b/app/models/upload.rb @@ -70,10 +70,8 @@ class Upload < ActiveRecord::Base # Help sysadmins find missing upload files if persisted? && !exist - if Gitlab::Sentry.enabled? - Raven.capture_message("Upload file does not exist", extra: self.attributes) - end - + exception = RuntimeError.new("Uploaded file does not exist") + Gitlab::Sentry.report_exception(exception, extra: self.attributes) Gitlab::Metrics.counter(:upload_file_does_not_exist_total, 'The number of times an upload record could not find its file').increment end |