contextual_logger 0.4.pre.2 → 0.4.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/contextual_logger.rb +1 -0
  3. metadata +3 -3
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 6d60e08b1b08501e772afba65533485b1f0ed81e
4
- data.tar.gz: 67c440c0e671e2341a2fb5a4624327e75d7fb0b5
3
+ metadata.gz: 245a6e7a65a43e18414fe3bfca78aeda87493f17
4
+ data.tar.gz: 63f6b2f7e58251d49072606976db9c2ce8c0e021
5
5
  SHA512:
6
- metadata.gz: f562cb98eb0b24e0315d8ee7e77913797d996e9fe2df5a67f520d2c20e8c507bad05ce9ab888a5e7757d4f7857d3f80c13a2740eff9503002b4435e8ad85df35
7
- data.tar.gz: 530f4febd3444df313d9e98742df89d1dafcfa5083c6a39ba92aad586819fadaf3c4e574b21fa42ed9edb62f4c42dc70869f67f2e838e9d25838d4a1c14deaba
6
+ metadata.gz: df61515ebf5df8bbea58efe09b4d04d597c9649abb4bd56ba4c3dff4473ab53a1b95062fb6babd0e509233b27c08c1906551492c973966d9aa92e35408e7307e
7
+ data.tar.gz: 357fd36aa25e68af5895c230355338dc996b2f81b0c0c3b42843f32f9c20e83b3c98f02a0fd7776977d49c2a23be18c08cb8f6d6d838aef359c12a9eaef73248
@@ -65,6 +65,7 @@ module ContextualLogger
65
65
 
66
66
  def add_if_enabled(severity, message, context:)
67
67
  if log_level_enabled?(severity)
68
+ @progname ||= nil
68
69
  write_entry_to_log(severity, Time.now, @progname, message, context: current_context_for_thread.deep_merge(context))
69
70
  end
70
71
  true
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: contextual_logger
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.pre.2
4
+ version: 0.4.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - James Ebentier
@@ -65,9 +65,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
65
65
  version: '0'
66
66
  required_rubygems_version: !ruby/object:Gem::Requirement
67
67
  requirements:
68
- - - ">"
68
+ - - ">="
69
69
  - !ruby/object:Gem::Version
70
- version: 1.3.1
70
+ version: '0'
71
71
  requirements: []
72
72
  rubyforge_project:
73
73
  rubygems_version: 2.6.13