smart_logger_wrapper 0.5.1 → 0.5.2
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: dc03b7c24cdb66ea1cb37dc33e5da9cb160853ce7e68a340fe6cbf85e79f1d0c
|
4
|
+
data.tar.gz: e2a20ca06d157c9b51865ce5fb9500ef923a18f2f9ec29b9b776a1608f92ffa0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6e673e853b7cf0a3ec3e03689e5c6c043cd2f14552a584fac1a430eda2032336d49fa50bb1d8684492bd362612d44faf5829cbec22d4bb6b67a76af56bcd5e9c
|
7
|
+
data.tar.gz: 19a86fdfbe0bad5edcdf1ff759a574523a229205b03d4eba0c94443d89553b1c667842d9fdbd2dc28ac0e002455fd740feb0e2fb9d5f3a7b1025d3b39940309d
|
@@ -12,11 +12,15 @@ class SmartLoggerWrapper < Logger
|
|
12
12
|
length == nil ? backtrace.to_a : backtrace.first(length)
|
13
13
|
end
|
14
14
|
|
15
|
-
def clean_backtrace(backtrace)
|
15
|
+
def clean_backtrace(backtrace, keeps_first: true)
|
16
16
|
(
|
17
17
|
if defined?(::Rails) && ::Rails.respond_to?(:backtrace_cleaner)
|
18
|
-
|
19
|
-
|
18
|
+
if keeps_first
|
19
|
+
head, *tail = backtrace
|
20
|
+
[head] + Rails.backtrace_cleaner.filter(tail)
|
21
|
+
else
|
22
|
+
Rails.backtrace_cleaner.filter(backtrace)
|
23
|
+
end
|
20
24
|
else
|
21
25
|
backtrace
|
22
26
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: smart_logger_wrapper
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.5.
|
4
|
+
version: 0.5.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Akihiro Katsura
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-05-
|
11
|
+
date: 2018-05-16 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|