Commit 5f98fdcd authored by Jacob Schatz's avatar Jacob Schatz

Add sentry logger to GitLab

parent 58665b64
...@@ -295,3 +295,6 @@ $ -> ...@@ -295,3 +295,6 @@ $ ->
checkInitialSidebarSize() checkInitialSidebarSize()
new Aside() new Aside()
if gon.sentry_dsn?
Raven.config('your public dsn').install()
\ No newline at end of file
...@@ -7,6 +7,7 @@ module Gitlab ...@@ -7,6 +7,7 @@ module Gitlab
gon.max_file_size = current_application_settings.max_attachment_size gon.max_file_size = current_application_settings.max_attachment_size
gon.relative_url_root = Gitlab.config.gitlab.relative_url_root gon.relative_url_root = Gitlab.config.gitlab.relative_url_root
gon.user_color_scheme = Gitlab::ColorSchemes.for_user(current_user).css_class gon.user_color_scheme = Gitlab::ColorSchemes.for_user(current_user).css_class
gon.sentry_dsn = ApplicationSetting.current.sentry_dsn
if current_user if current_user
gon.current_user_id = current_user.id gon.current_user_id = current_user.id
......
This diff is collapsed.
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment