contextual_logger 0.9.0 → 0.9.1
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 -1
- data/lib/contextual_logger/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8bf5d991457c3e1e038e0d7642e80169cacddaac144146b1015c308096705f89
|
4
|
+
data.tar.gz: 8c4d4e0b68c474d4440ce0032f02694a51b53a3b17ce5c3590dafc48b5c6d5f4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a4f3565314ca38f74e0396f3621deede596c1b3e342d4599fccafa08340b908ea1e9f1250c99acf8af48c6594ce70d66f263deebb0c49d527bbc80b7bb7a05fd
|
7
|
+
data.tar.gz: 6210de2c953e183e90065e7da09984f608d873e6ce07d965037daa2e6fad0eaaca031b8858cbe5d72aa31b1cc5467ce22e0fdc092bd7e9d16a33950512dff940
|
data/lib/contextual_logger.rb
CHANGED
@@ -134,7 +134,7 @@ module ContextualLogger
|
|
134
134
|
|
135
135
|
def format_message(severity, timestamp, progname, message, context: {})
|
136
136
|
if @formatter
|
137
|
-
@formatter.call(severity, timestamp, progname, { message: ContextualLogger.normalize_message(message)
|
137
|
+
@formatter.call(severity, timestamp, progname, { message: ContextualLogger.normalize_message(message) }.merge!(context))
|
138
138
|
else
|
139
139
|
"#{basic_json_log_entry(severity, timestamp, progname, message, context: context)}\n"
|
140
140
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: contextual_logger
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.9.
|
4
|
+
version: 0.9.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- James Ebentier
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-08-
|
11
|
+
date: 2020-08-18 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: json
|