tracee 1.0.13 → 1.0.14
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/tracee/ext/better_errors.rb +14 -16
- data/lib/tracee/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 90f101b5ed798c85e00b675e639b857d557559f3
|
4
|
+
data.tar.gz: e20723a50994316c3f45281c0a777f82e1527ec8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e26e75daeae8ebeb2223d4b319db4502db9eead63b015ded9ab4ba020210992c217cb01342e6d59130a0896ac89c074884726db1efb00541694ef7be9a782a94
|
7
|
+
data.tar.gz: 31ab51693a2d16e3eb5b8bffeb322e28cca9ac6a2d1f52ebe50b8d3a886c578fab0a3432da01149d38656451b77b0c23edc2d76f668d58bedfdd39268373b6da
|
@@ -5,24 +5,22 @@ module Tracee
|
|
5
5
|
extend ::ActiveSupport::Concern
|
6
6
|
|
7
7
|
included do
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
def log_exception_with_decorate
|
12
|
-
return unless logger = ::BetterErrors.logger
|
8
|
+
def log_exception
|
9
|
+
return unless logger = ::BetterErrors.logger
|
13
10
|
|
14
|
-
|
11
|
+
message = "\n#{@error_page.exception.class} - #{@error_page.exception.message}:"
|
15
12
|
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
13
|
+
logger.fatal message
|
14
|
+
|
15
|
+
frames = @error_page.backtrace_frames # original definition
|
16
|
+
frames = frames.map(&:to_s).reject {|line| line =~ IGNORE_RE}
|
17
|
+
frames = Stack::BaseDecorator.(frames, paint_code_line: :greenish)
|
18
|
+
frames.each do |frame|
|
19
|
+
if frame =~ /^[-\w]+ \(\d+\.[\w\.]+\) /
|
20
|
+
logger.debug " #{frame}"
|
21
|
+
else
|
22
|
+
logger.fatal " #{frame}"
|
23
|
+
end
|
26
24
|
end
|
27
25
|
end
|
28
26
|
end
|
data/lib/tracee/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: tracee
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.14
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Sergey Baev
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-
|
11
|
+
date: 2017-07-12 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -134,7 +134,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
134
134
|
version: '0'
|
135
135
|
requirements: []
|
136
136
|
rubyforge_project:
|
137
|
-
rubygems_version: 2.
|
137
|
+
rubygems_version: 2.4.8
|
138
138
|
signing_key:
|
139
139
|
specification_version: 4
|
140
140
|
summary: An extensible logger with stack tracing, benchmarking, preprocessing, and
|