logstasher 2.0.1 → 2.0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/logstasher/active_record/log_subscriber.rb +5 -1
- data/lib/logstasher/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7c6c820ae3e9564dbca07d91c80e75ded3a87bdbf11e0df7ff0b5561ce3a21c0
|
4
|
+
data.tar.gz: a5cc2935b0db9c9daad29921df6f9461379f9dd0cca76abf0a802f110e44be40
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4e6b0ae61b5f545e29cd3dff4b3d28bdf3f092f8064978c389d444cb6dad35217b860ac8176034d5fef35d479c68efc818643f2779003e95062e8bbce66f194f
|
7
|
+
data.tar.gz: e942332d068bf347f588daa955b1d749d7f553b296e2d76bdd33e32555ec4b7e4c6d9ab0b8ef3da92fd363b00a94a71704ca2b50076248559da438ebbdb647c1
|
@@ -21,10 +21,14 @@ module LogStasher
|
|
21
21
|
|
22
22
|
def logstash_event(event)
|
23
23
|
self.class.runtime += event.duration
|
24
|
-
data = event.payload
|
24
|
+
data = event.payload.dup
|
25
25
|
|
26
26
|
return if 'SCHEMA' == data[:name]
|
27
27
|
|
28
|
+
# A connection cannot be converted to JSON as it fails with
|
29
|
+
# SystemStackError when running against ActiveSupport JSON patches.
|
30
|
+
data.delete(:connection)
|
31
|
+
|
28
32
|
data.merge! runtimes(event)
|
29
33
|
data.merge! extract_sql(data)
|
30
34
|
data.merge! request_context
|
data/lib/logstasher/version.rb
CHANGED