Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/config
diff options
context:
space:
mode:
authorAlejandro Rodríguez <alejorro70@gmail.com>2017-10-03 03:52:19 +0300
committerAlejandro Rodríguez <alejorro70@gmail.com>2017-10-06 00:31:34 +0300
commit60a35e4230404b84d4aee8015fb7821b0b194277 (patch)
treeaf4ae201825a61ac8284bdc7e875233c71073714 /config
parentb40192a9464503bf4b141f8cf6133d7ba0f893fe (diff)
Send API parameters as extra data for sentry errors
Diffstat (limited to 'config')
-rw-r--r--config/initializers/sentry.rb4
1 files changed, 3 insertions, 1 deletions
diff --git a/config/initializers/sentry.rb b/config/initializers/sentry.rb
index 62d0967009a..b2da3b3dc19 100644
--- a/config/initializers/sentry.rb
+++ b/config/initializers/sentry.rb
@@ -2,7 +2,7 @@
require 'gitlab/current_settings'
-if Rails.env.production?
+def configure_sentry
# allow it to fail: it may do so when create_from_defaults is executed before migrations are actually done
begin
sentry_enabled = Gitlab::CurrentSettings.current_application_settings.sentry_enabled
@@ -23,3 +23,5 @@ if Rails.env.production?
end
end
end
+
+configure_sentry if Rails.env.production?