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
diff options
context:
space:
mode:
authorBob Van Landuyt <bob@vanlanduyt.co>2017-07-20 09:53:57 +0300
committerBob Van Landuyt <bob@vanlanduyt.co>2017-08-31 15:10:04 +0300
commitb6646e778d43a9b6ba768a8799830095cfcff635 (patch)
treea40ab9cb0d2c38f79601f70603c78023fdaff8e2 /lib/gitlab/sentry.rb
parentbf4ec606a56238326bf4930c59d0ca82dd281cb7 (diff)
Track the locale in Sentry so we know which ones are failing
Diffstat (limited to 'lib/gitlab/sentry.rb')
-rw-r--r--lib/gitlab/sentry.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/gitlab/sentry.rb b/lib/gitlab/sentry.rb
index 2442c2ded3b..d7e73f30abf 100644
--- a/lib/gitlab/sentry.rb
+++ b/lib/gitlab/sentry.rb
@@ -7,6 +7,8 @@ module Gitlab
def self.context(current_user = nil)
return unless self.enabled?
+ Raven.tags_context(locale: I18n.locale)
+
if current_user
Raven.user_context(
id: current_user.id,