logstasher 0.1.0 → 0.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -12,8 +12,10 @@ module ActionController
|
|
12
12
|
|
13
13
|
if Logstasher.payload_appender
|
14
14
|
before_keys = raw_payload.keys.clone
|
15
|
-
|
15
|
+
# Execue the payload appened in current context
|
16
|
+
self.instance_exec raw_payload, &Logstasher.payload_appender
|
16
17
|
after_keys = raw_payload.keys
|
18
|
+
# Add to payload all extra keys added to payload hash
|
17
19
|
raw_payload[:log_stasher_appended_param_keys] = after_keys - before_keys
|
18
20
|
end
|
19
21
|
|
data/lib/logstasher/version.rb
CHANGED