semantic_logger 4.0.0.beta2 → 4.0.0.rc1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/semantic_logger/base.rb +3 -3
- data/lib/semantic_logger/semantic_logger.rb +2 -1
- data/lib/semantic_logger/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ab29b9707e87eb2a509437de9450080a5fbe7938
|
4
|
+
data.tar.gz: 893e64efec814a11175c306b5edd0bcf07c85a9f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a34b4144be7c09e17f017e4bca5c8f8d7ea690ca738bac8f1e09552b16f5fd019d420f55322422490569a4e7f80cbc4c83315866619d2d5ffcc00dfcbf578120
|
7
|
+
data.tar.gz: 46785f3003aa0e1e99174ccfffbc7eae5ef8882ba8ab22d1ffba98641211371f6a2b2e3d83175d1f4080b9179d6a3a0e27b3b4ed58c33be546241b46fd270c4a
|
data/lib/semantic_logger/base.rb
CHANGED
@@ -122,11 +122,11 @@ module SemanticLogger
|
|
122
122
|
log = Log.new(name, level)
|
123
123
|
backtrace =
|
124
124
|
if thread == Thread.current
|
125
|
-
|
125
|
+
Log.cleanse_backtrace
|
126
126
|
else
|
127
127
|
log.thread_name = thread.name
|
128
|
-
log.tags = thread[:semantic_logger_tags].clone
|
129
|
-
log.named_tags = thread[:semantic_logger_named_tags].clone
|
128
|
+
log.tags = (thread[:semantic_logger_tags] || []).clone
|
129
|
+
log.named_tags = (thread[:semantic_logger_named_tags] || []).clone
|
130
130
|
thread.backtrace
|
131
131
|
end
|
132
132
|
# TODO: Keep backtrace instead of transforming into a text message at this point
|
@@ -266,7 +266,8 @@ module SemanticLogger
|
|
266
266
|
Signal.trap(thread_dump_signal) do
|
267
267
|
logger = SemanticLogger['Thread Dump']
|
268
268
|
Thread.list.each do |thread|
|
269
|
-
|
269
|
+
# MRI re-uses the main thread for signals, JRuby uses `SIGTTIN handler` thread.
|
270
|
+
next if defined?(JRuby) && (thread == Thread.current)
|
270
271
|
logger.backtrace(thread: thread)
|
271
272
|
end
|
272
273
|
end if thread_dump_signal
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: semantic_logger
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 4.0.0.
|
4
|
+
version: 4.0.0.rc1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Reid Morrison
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-
|
11
|
+
date: 2017-02-06 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: concurrent-ruby
|