rack-insight 0.5.8 → 0.5.9
Sign up to get free protection for your applications and to get access to all the features.
- data/CHANGELOG +6 -0
- data/Gemfile.lock +1 -1
- data/lib/rack/insight/config.rb +5 -2
- data/lib/rack/insight/filtered_backtrace.rb +1 -1
- data/lib/rack/insight/version.rb +1 -1
- metadata +2 -2
data/CHANGELOG
CHANGED
data/Gemfile.lock
CHANGED
data/lib/rack/insight/config.rb
CHANGED
@@ -1,13 +1,14 @@
|
|
1
1
|
module Rack::Insight
|
2
2
|
class Config
|
3
3
|
class << self
|
4
|
-
attr_reader :config, :verbosity, :log_file, :log_level, :rails_log_copy
|
4
|
+
attr_reader :config, :verbosity, :log_file, :log_level, :rails_log_copy, :filtered_backtrace
|
5
5
|
end
|
6
6
|
@log_file = STDOUT
|
7
7
|
@log_level = ::Logger::DEBUG
|
8
8
|
@logger = nil
|
9
9
|
@verbosity = true
|
10
10
|
@rails_log_copy = true
|
11
|
+
@filtered_backtrace = true
|
11
12
|
|
12
13
|
DEFAULTS = {
|
13
14
|
# You can augment or replace the default set of panel load paths.
|
@@ -24,7 +25,8 @@ module Rack::Insight
|
|
24
25
|
:log_level => @log_level,
|
25
26
|
:rails_log_copy => @rails_log_copy, # Only has effect when logger is the Rack::Insight::Logger, or a logger behaving like it
|
26
27
|
# Can set a specific verbosity: Rack::Insight::Logging::VERBOSITY[:debug]
|
27
|
-
:verbosity => @verbosity # true is equivalent to relying soley on the log level of each logged message
|
28
|
+
:verbosity => @verbosity, # true is equivalent to relying soley on the log level of each logged message
|
29
|
+
:filtered_backtrace => @filtered_backtrace # Full backtraces, or filtered ones?
|
28
30
|
}
|
29
31
|
|
30
32
|
@config ||= DEFAULTS
|
@@ -35,6 +37,7 @@ module Rack::Insight
|
|
35
37
|
@log_level = config[:log_level]
|
36
38
|
@log_file = config[:log_file]
|
37
39
|
@verbosity = config[:verbosity]
|
40
|
+
@filtered_backtrace = config[:filtered_backtrace]
|
38
41
|
unless config[:panel_load_paths].kind_of?(Array)
|
39
42
|
raise "Rack::Insight::Config.config[:panel_load_paths] is invalid: Expected kind of Array but got #{config[:panel_load_paths].class}"
|
40
43
|
end
|
@@ -16,7 +16,7 @@ module Rack::Insight
|
|
16
16
|
def self.backtrace_regexp
|
17
17
|
@backtrace_regexp ||=
|
18
18
|
begin
|
19
|
-
if
|
19
|
+
if !Rack::Insight::Config.filtered_backtrace || (app_root = root_for_backtrace_filtering).nil?
|
20
20
|
/.*/
|
21
21
|
else
|
22
22
|
excludes = %w{vendor}
|
data/lib/rack/insight/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rack-insight
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.5.
|
4
|
+
version: 0.5.9
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -12,7 +12,7 @@ authors:
|
|
12
12
|
autorequire:
|
13
13
|
bindir: bin
|
14
14
|
cert_chain: []
|
15
|
-
date: 2012-09-
|
15
|
+
date: 2012-09-05 00:00:00.000000000 Z
|
16
16
|
dependencies:
|
17
17
|
- !ruby/object:Gem::Dependency
|
18
18
|
name: rack
|