aboutsummaryrefslogtreecommitdiffstats
path: root/railties/lib/rails/log_subscriber
diff options
context:
space:
mode:
authorCarlhuda <carlhuda@engineyard.com>2010-03-02 13:05:25 -0800
committerCarlhuda <carlhuda@engineyard.com>2010-03-02 13:05:25 -0800
commitc2dbc391a9292e6f73cadce2f0ba1be871b29e82 (patch)
tree3956dbc83c4d87a2e889017fd14883e1ef6285da /railties/lib/rails/log_subscriber
parentd434c5406846fb280b8a9d6ec40247b1f1b464c6 (diff)
downloadrails-c2dbc391a9292e6f73cadce2f0ba1be871b29e82.tar.gz
rails-c2dbc391a9292e6f73cadce2f0ba1be871b29e82.tar.bz2
rails-c2dbc391a9292e6f73cadce2f0ba1be871b29e82.zip
Have log subscribers subscribe to the actual events, so the subscriber doesn't subscribe to *every* event, so we can have events that are slow-ish but are not actually run in production.
Diffstat (limited to 'railties/lib/rails/log_subscriber')
-rw-r--r--railties/lib/rails/log_subscriber/test_helper.rb1
1 files changed, 0 insertions, 1 deletions
diff --git a/railties/lib/rails/log_subscriber/test_helper.rb b/railties/lib/rails/log_subscriber/test_helper.rb
index 9ede56cad4..02f5079462 100644
--- a/railties/lib/rails/log_subscriber/test_helper.rb
+++ b/railties/lib/rails/log_subscriber/test_helper.rb
@@ -43,7 +43,6 @@ module Rails
@notifier = ActiveSupport::Notifications::Notifier.new(queue)
Rails::LogSubscriber.colorize_logging = false
- @notifier.subscribe { |*args| Rails::LogSubscriber.dispatch(args) }
set_logger(@logger)
ActiveSupport::Notifications.notifier = @notifier