lib/rack/insight/config.rb in rack-insight-0.5.23 vs lib/rack/insight/config.rb in rack-insight-0.5.24

- old
+ new

@@ -6,11 +6,11 @@ :database end @log_file = STDOUT @log_level = ::Logger::DEBUG @logger = nil - @verbosity = true + @verbosity = Rack::Insight::Logging::VERBOSITY[:silent] @rails_log_copy = true @filtered_backtrace = true @panel_configs = { :active_record => {:probes => {'ActiveRecord' => [:class, :allocate]}}, :active_resource => {:probes => {'ActiveResource::Connection' => [:instance, :request]}}, @@ -18,10 +18,11 @@ :add, :replace, :delete, :prepend, :append], 'MemCache' => [:instance, :decr, :get, :get_multi, :incr, :set, :add, :delete], 'Dalli::Client' => [:instance, :perform] } }, :active_record => {:probes => {'ActiveRecord' => [:class, :allocate]}}, # :log_panel => The log panel configures its probes in its initializer + :sphinx => {:probes => {'Riddle::Client' => [:instance, :request]}}, :sql => {:probes => Hash[%w{ PostgreSQLAdapter MysqlAdapter SQLiteAdapter Mysql2Adapter OracleEnhancedAdapter }.map do |adapter| ["ActiveRecord::ConnectionAdapters::#{adapter}", [:instance, :execute]] end ] }, :templates => {:probes => {'ActionView::Template' => [:instance, :render]}} @@ -45,11 +46,11 @@ :logger => @logger, :log_file => @log_file, :log_level => @log_level, :rails_log_copy => @rails_log_copy, # Only has effect when logger is the Rack::Insight::Logger, or a logger behaving like it # Can set a specific verbosity: Rack::Insight::Logging::VERBOSITY[:debug] - :verbosity => @verbosity, # true is equivalent to relying soley on the log level of each logged message - :filtered_backtrace => @filtered_backtrace, # Full backtraces, or filtered ones? + :verbosity => @verbosity, # true is equivalent to relying solely on the log level of each logged message + :filtered_backtrace => @filtered_backtrace, # Full back-traces, or filtered ones? :panel_configs => @panel_configs, # Allow specific panels to have their own configurations, and make it extensible :silence_magic_insight_warnings => @silence_magic_insight_warnings, # Should Rack::Insight warn when the MagicInsight is used? :database => @database # a hash. Keys :raise_encoding_errors, and :raise_decoding_errors are self explanatory # :raise_encoding_errors # When set to true, if there is an encoding error (unlikely)