Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Adds logical-insight Gem for development and moves

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...
commit 509412161a0434e73d927c99dd644807e76f493b 1 parent 23ffdda
@ehelms authored
Showing with 6 additions and 0 deletions.
  1. +1 −0  src/Gemfile
  2. +5 −0 src/config/initializers/logical_insight.rb
View
1  src/Gemfile
@@ -83,4 +83,5 @@ end
group :development do
# profiler
gem 'newrelic_rpm'
+ gem 'logical-insight'
end
View
5 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
Please sign in to comment.
Something went wrong with that request. Please try again.