fluent-plugin-sumologic-radiant 0.1.2 → 0.1.3

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 1a164af1e9ecd7ea6c0cf80e6dcbe16b307f54614d52a62a87e76d31fc34bdcc
4
- data.tar.gz: b1282954545fb80fab6b752bf04d1a219dcaf13faa02994eb35dd8a1646b0832
3
+ metadata.gz: df87a5e95372ce2cc19104f2d9eca6d948b4bb9b84c9f8e3884f31a409eec53b
4
+ data.tar.gz: 7d7aa1add88a589a4bbf81120af69f229f9dea381a1877a61639c87d4598addb
5
5
  SHA512:
6
- metadata.gz: 1763c9aefe2627809856348612c890f6799cd8f6475c4b78dd054f05d566fab9d0edce3e51c94c8930194e555454e0ff6bcd030ec98635689efa3b5c6fd9f75f
7
- data.tar.gz: 5ed3fc89f210e0274dffa32949496e364d437d930b65e836958846711c75377b790f162250bfd117cf6a83f8c5eb5d0aaa0346fb06ea50a5ddb42d9b5899306a
6
+ metadata.gz: a6e8b34facf0d9fbfa14197a190f34155355d8c2794a08970f02ed055f30838cf72e59d0f92b7a1209b17f35b39c2505e2992e0df89f02a16e1d0a5448f1e109
7
+ data.tar.gz: eec162663af30d156dafa70e0e9d479ce161ffcd3bfe65c2374148e3c05f810b44a8b033573cdb21c9734db586ff24a57415053dd7a802b051e03c18f85784bd
@@ -313,17 +313,14 @@ module Fluent
313
313
  record
314
314
  end
315
315
 
316
- # Strip sumo_metadata and dump to json
316
+ # Strip sumo_metadata and dump to JSON.
317
+ #
318
+ # NOTE: Unlike earlier versions, this method no longer attempts to JSON-parse
319
+ # the value of @log_key. This makes behavior closer to the original
320
+ # fluent-plugin-sumologic_output, where plain-text log lines are accepted
321
+ # without raising parsing errors when only `endpoint` is configured.
317
322
  def dump_log(log_record)
318
323
  log_record.delete("_sumo_metadata")
319
- begin
320
- if log_record.key?(@log_key)
321
- hash = Oj.load(log_record[@log_key])
322
- log_record[@log_key] = hash
323
- end
324
- rescue Oj::ParseError
325
- # Keep original if parsing fails
326
- end
327
324
  Oj.dump(log_record)
328
325
  end
329
326
 
@@ -3,7 +3,7 @@
3
3
  module Fluent
4
4
  module Plugin
5
5
  module SumologicRadiant
6
- VERSION = "0.1.2"
6
+ VERSION = "0.1.3"
7
7
  end
8
8
  end
9
9
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fluent-plugin-sumologic-radiant
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.2
4
+ version: 0.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - G. Rahul Nutakki