From 7fbf162666e7f2860746bcfd6ed44d2bc426a6d4 Mon Sep 17 00:00:00 2001 From: Sam Date: Sat, 24 May 2014 22:50:39 +1000 Subject: [PATCH] Logster update cleans up a bunch of messed up context stuff with multisite improves backtraces adds request params --- Gemfile.lock | 2 +- app/controllers/forums_controller.rb | 2 +- .../common/_discourse_javascript.html.erb | 14 +++++------ config/initializers/logster.rb | 23 ++++++++++++++++++- config/routes.rb | 11 +++++---- .../lib/rails_multisite/railtie.rb | 2 ++ 6 files changed, 39 insertions(+), 15 deletions(-) diff --git a/Gemfile.lock b/Gemfile.lock index 1db7969fb28..2782bf77ff5 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -152,7 +152,7 @@ GEM thor (~> 0.15) libv8 (3.16.14.3) listen (0.7.3) - logster (0.0.9) + logster (0.0.10) lru_redux (0.8.1) mail (2.5.4) mime-types (~> 1.16) diff --git a/app/controllers/forums_controller.rb b/app/controllers/forums_controller.rb index 55545fdcea5..a15b6090ee3 100644 --- a/app/controllers/forums_controller.rb +++ b/app/controllers/forums_controller.rb @@ -1,6 +1,6 @@ class ForumsController < ApplicationController - skip_before_filter :check_xhr, only: [:status] + skip_before_filter :check_xhr skip_before_filter :authorize_mini_profiler, only: [:status] skip_before_filter :redirect_to_login_if_required, only: [:status] diff --git a/app/views/common/_discourse_javascript.html.erb b/app/views/common/_discourse_javascript.html.erb index 10174348ffb..060783800b1 100644 --- a/app/views/common/_discourse_javascript.html.erb +++ b/app/views/common/_discourse_javascript.html.erb @@ -11,10 +11,9 @@ })(); -<% if Rails.env.development? %> - -<% end %> + <% end %> + window.onerror(e && e.message, null,null,null,e); + }); +