logstasher 0.1.0 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
@@ -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