mirror of
https://github.com/wahyd4/gitlabhq.git
synced 2026-08-09 12:46:07 +10:00
Add sentry logger to GitLab
This commit is contained in:
@@ -295,3 +295,6 @@ $ ->
|
||||
|
||||
checkInitialSidebarSize()
|
||||
new Aside()
|
||||
|
||||
if gon.sentry_dsn?
|
||||
Raven.config('your public dsn').install()
|
||||
@@ -7,6 +7,7 @@ module Gitlab
|
||||
gon.max_file_size = current_application_settings.max_attachment_size
|
||||
gon.relative_url_root = Gitlab.config.gitlab.relative_url_root
|
||||
gon.user_color_scheme = Gitlab::ColorSchemes.for_user(current_user).css_class
|
||||
gon.sentry_dsn = ApplicationSetting.current.sentry_dsn
|
||||
|
||||
if current_user
|
||||
gon.current_user_id = current_user.id
|
||||
|
||||
+3
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user