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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 3066e966beb70e220a27c8f45043eba84ce0a339
4
- data.tar.gz: '08a10fa0381149833d7c39b2ae1d8d07c0ea2e4b'
3
+ metadata.gz: ab29b9707e87eb2a509437de9450080a5fbe7938
4
+ data.tar.gz: 893e64efec814a11175c306b5edd0bcf07c85a9f
5
5
  SHA512:
6
- metadata.gz: 4ff7e40427736b675133b525f8da512c138c62194bb0225a01054b119ca83ab7d1352d7c6323e9da4a2edf94cbe27c1e98906bb6734dd0c1bcfa11d744b99f51
7
- data.tar.gz: d58d10c056b3a73b3f1023eb3e3ce6548ef03171fe391e162aae7ab9effede30bdc995e0bca2b9496bb10cf61e6427d1fca42d7d59b990dc6edc191abd3a1d0c
6
+ metadata.gz: a34b4144be7c09e17f017e4bca5c8f8d7ea690ca738bac8f1e09552b16f5fd019d420f55322422490569a4e7f80cbc4c83315866619d2d5ffcc00dfcbf578120
7
+ data.tar.gz: 46785f3003aa0e1e99174ccfffbc7eae5ef8882ba8ab22d1ffba98641211371f6a2b2e3d83175d1f4080b9179d6a3a0e27b3b4ed58c33be546241b46fd270c4a
@@ -122,11 +122,11 @@ module SemanticLogger
122
122
  log = Log.new(name, level)
123
123
  backtrace =
124
124
  if thread == Thread.current
125
- self.class.cleanse_backtrace
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
- next if thread == Thread.current
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
@@ -1,3 +1,3 @@
1
1
  module SemanticLogger #:nodoc
2
- VERSION = '4.0.0.beta2'
2
+ VERSION = '4.0.0.rc1'
3
3
  end
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.beta2
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-01-06 00:00:00.000000000 Z
11
+ date: 2017-02-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: concurrent-ruby