logstasher 1.1.0 → 1.1.1
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e70fe7cbaf3e195c1a4397006dafe495519305c7
|
4
|
+
data.tar.gz: 88af689515be8ebf981aa891643eb698d7668d28
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5d766762c5cdf4965a0d76e46237f7ce29290487adc221f90dd04030668df0f4ff07243b8fdb4efd606ae79736bfaa6f71e553946b6ed77a731ab51c2dd63c34
|
7
|
+
data.tar.gz: e65bfbf19db2c66e3b63e04948a6eafb820698485c243d98f10c6d83931076cb438e53cc273af26fbbbc44965ccedee982bdb3320d307cadf1896b29d5197f80
|
data/lib/logstasher.rb
CHANGED
@@ -67,8 +67,8 @@ module LogStasher
|
|
67
67
|
LogStasher::CustomFields.add(*LogStasher.store.keys)
|
68
68
|
instance_exec(fields, &block)
|
69
69
|
end
|
70
|
-
::ActionController::Metal.send(:define_method, :
|
71
|
-
::ActionController::Base.send(:define_method, :
|
70
|
+
::ActionController::Metal.send(:define_method, :logstasher_add_custom_fields_to_payload, &wrapped_block)
|
71
|
+
::ActionController::Base.send(:define_method, :logstasher_add_custom_fields_to_payload, &wrapped_block)
|
72
72
|
end
|
73
73
|
|
74
74
|
def add_custom_fields_to_request_context(&block)
|
@@ -19,9 +19,9 @@ module LogStasher
|
|
19
19
|
logstasher_add_custom_fields_to_request_context(LogStasher.request_context)
|
20
20
|
end
|
21
21
|
|
22
|
-
if self.respond_to?(:
|
22
|
+
if self.respond_to?(:logstasher_add_custom_fields_to_payload)
|
23
23
|
before_keys = payload.keys.clone
|
24
|
-
|
24
|
+
logstasher_add_custom_fields_to_payload(payload)
|
25
25
|
after_keys = payload.keys
|
26
26
|
# Store all extra keys added to payload hash in payload itself. This is a thread safe way
|
27
27
|
LogStasher::CustomFields.add(*(after_keys - before_keys))
|
@@ -23,9 +23,9 @@ module ActionController
|
|
23
23
|
logstasher_add_custom_fields_to_request_context(LogStasher.request_context)
|
24
24
|
end
|
25
25
|
|
26
|
-
if self.respond_to?(:
|
26
|
+
if self.respond_to?(:logstasher_add_custom_fields_to_payload)
|
27
27
|
before_keys = raw_payload.keys.clone
|
28
|
-
|
28
|
+
logstasher_add_custom_fields_to_payload(raw_payload)
|
29
29
|
after_keys = raw_payload.keys
|
30
30
|
# Store all extra keys added to payload hash in payload itself. This is a thread safe way
|
31
31
|
LogStasher::CustomFields.add(*(after_keys - before_keys))
|
data/lib/logstasher/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: logstasher
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.1.
|
4
|
+
version: 1.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Shadab Ahmed
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2017-02-01 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: logstash-event
|