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.
- checksums.yaml +4 -4
- data/lib/contextual_logger.rb +1 -0
- 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: 245a6e7a65a43e18414fe3bfca78aeda87493f17
|
4
|
+
data.tar.gz: 63f6b2f7e58251d49072606976db9c2ce8c0e021
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: df61515ebf5df8bbea58efe09b4d04d597c9649abb4bd56ba4c3dff4473ab53a1b95062fb6babd0e509233b27c08c1906551492c973966d9aa92e35408e7307e
|
7
|
+
data.tar.gz: 357fd36aa25e68af5895c230355338dc996b2f81b0c0c3b42843f32f9c20e83b3c98f02a0fd7776977d49c2a23be18c08cb8f6d6d838aef359c12a9eaef73248
|
data/lib/contextual_logger.rb
CHANGED
@@ -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.
|
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:
|
70
|
+
version: '0'
|
71
71
|
requirements: []
|
72
72
|
rubyforge_project:
|
73
73
|
rubygems_version: 2.6.13
|