Add sentry logger to GitLab

This commit is contained in:
Jacob Schatz
2016-04-18 12:26:32 -04:00
parent 58665b64f5
commit 5f98fdcdc9
3 changed files with 7 additions and 0 deletions
@@ -295,3 +295,6 @@ $ ->
checkInitialSidebarSize()
new Aside()
if gon.sentry_dsn?
Raven.config('your public dsn').install()
+1
View File
@@ -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
File diff suppressed because one or more lines are too long