diff options
author | Alejandro RodrÃguez <alejorro70@gmail.com> | 2017-10-02 21:52:19 -0300 |
---|---|---|
committer | Alejandro RodrÃguez <alejorro70@gmail.com> | 2017-10-05 18:31:34 -0300 |
commit | 60a35e4230404b84d4aee8015fb7821b0b194277 (patch) | |
tree | af4ae201825a61ac8284bdc7e875233c71073714 /config/initializers/sentry.rb | |
parent | b40192a9464503bf4b141f8cf6133d7ba0f893fe (diff) | |
download | gitlab-ce-60a35e4230404b84d4aee8015fb7821b0b194277.tar.gz |
Send API parameters as extra data for sentry errorsapi-sentry-extra
Diffstat (limited to 'config/initializers/sentry.rb')
-rw-r--r-- | config/initializers/sentry.rb | 4 |
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? |