fluent-plugin-sumologic-mattk42 0.0.2 → 0.0.4

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
  SHA1:
3
- metadata.gz: 58c29f7248c3f5ca50aa7f799debf52944dec1a4
4
- data.tar.gz: ce7e2fcfa9aaec1aeb62c7907eaf652b919cf1c9
3
+ metadata.gz: 885e4f1f640c0156d126854bff666763a47d9e2e
4
+ data.tar.gz: a1aa7318781fac641efa2430b65fe8efda59241e
5
5
  SHA512:
6
- metadata.gz: 6c35a2200ec010d493dfd5a3762b8aecbbbf73de9ef878eb0d1180c48d3dde3797876969087b98ed39a6ea7af1cf4dec21b17646719595d707b4a5efa1a2b4a3
7
- data.tar.gz: b22408c4b1a86770fab184f4dd1223d7b7019081fa9ec08e72d96928325726913e56458d671b8a4697f50fc54d58385f08baaada9a859fea600bbdb9d44ed3fa
6
+ metadata.gz: c637305d2f361ed7ceb0d0ebf86ae51705365ab566984a81cf2b2cac3cbbce08f392ba643a642b96067f42b29982556b7c0e10d7857442a510970c4464d41efd
7
+ data.tar.gz: 52a7dffa1925b56ae321ab29fc3730cb350befda86bc3f64005fb3e81a14d074ff8616a2a4ff405d7f9f5d475718b301062dfd57b0f48bfb4ae9f0395864d209
@@ -4,7 +4,7 @@ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
4
 
5
5
  Gem::Specification.new do |spec|
6
6
  spec.name = "fluent-plugin-sumologic-mattk42"
7
- spec.version = "0.0.2"
7
+ spec.version = "0.0.4"
8
8
  spec.authors = ["mattk42"]
9
9
  spec.email = ["matt1988@gmail.com"]
10
10
  spec.description = %q{fluent plugin for sumologic}
@@ -53,7 +53,13 @@ class Fluent::SumologicOutput< Fluent::BufferedOutput
53
53
  source_name = record[@source_name_key] || ''
54
54
  record.delete(@source_name_key)
55
55
  messages_list[source_name] = [] unless messages_list[source_name]
56
- messages_list[source_name] << record.to_json
56
+
57
+ begin
58
+ messages_list[source_name] << record.to_json
59
+ rescue Encoding::UndefinedConversionError
60
+ next
61
+ end
62
+
57
63
  end
58
64
  when 'text'
59
65
  chunk.msgpack_each do |tag, time, record|
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fluent-plugin-sumologic-mattk42
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 0.0.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - mattk42
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-06-17 00:00:00.000000000 Z
11
+ date: 2016-07-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler