Skip to content

Commit

Permalink
Adds logical-insight Gem for development and moves
Browse files Browse the repository at this point in the history
the logical insight code to an initializer so that
it can be turned on and off via config file.

Add logical_insight: true to the development section
of katello.yml and restart server to enable.
  • Loading branch information
ehelms committed Apr 24, 2012
1 parent 23ffdda commit 5094121
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/Gemfile
Expand Up @@ -83,4 +83,5 @@ end
group :development do
# profiler
gem 'newrelic_rpm'
gem 'logical-insight'
end
5 changes: 5 additions & 0 deletions src/config/initializers/logical_insight.rb
@@ -0,0 +1,5 @@
require "logical-insight"

if AppConfig.logical_insight
Rails.application.config.middleware.use "Insight::App", :secret_key => false, :ip_masks => false
end

0 comments on commit 5094121

Please sign in to comment.