fluent-plugin-datadog-log 0.1.0.rc13 → 0.1.0.rc14

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 3f7fcfdfa0667c08f2d6a9af5609357cc27c43a4
4
- data.tar.gz: 1e782d80952ebc9b82339cf1b49b796ee20b407f
3
+ metadata.gz: f9100d5bb190bd0bda8a6acd05dcb4e6181a5fca
4
+ data.tar.gz: 5686e0b81e945928c1db36301553111d379c127e
5
5
  SHA512:
6
- metadata.gz: 76c99159bec7e09eab80546f6b1d67188cc4fc97e1f3c1471d4fcee1c2872e5a1100268ba739ba7e7a474a97a7b5e9e23814011db5fc4d6cdcf8674eee068abe
7
- data.tar.gz: 18f6a73b24a7914147b900f94b33f7d60ba9f040d5c5c467d01ad67271d4c944c0c8ef3cbfa2ed0e3c4aded8ded4195ab197410e1193a6439aa5c6a9a82817db
6
+ metadata.gz: cefd468fc826971c364343bc3461c22555b17cbbb6de533b1c0d8c055630598dd95d2e85b698c712d67e9ad46702d8970fa9b84ea5acaedbbb7bcdf302a6e724
7
+ data.tar.gz: b891ea630b28992e5ac5e068661f9b871c620a79bdbcd7ee63ebd7cb4115850cc69a3931b382ace192c9dd292ff483dcc21c1c72c6f314f203a40ccb2b185cdf
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- fluent-plugin-datadog-log (0.1.0.rc13)
4
+ fluent-plugin-datadog-log (0.1.0.rc14)
5
5
  fluentd (~> 1.0.0)
6
6
  json (~> 1.8)
7
7
  net_tcp_client (~> 2.0.1)
@@ -8,7 +8,7 @@ eos
8
8
  gem.homepage = \
9
9
  'https://github.com/mumoshu/fluent-plugin-datadog-log'
10
10
  gem.license = 'Apache-2.0'
11
- gem.version = '0.1.0.rc13'
11
+ gem.version = '0.1.0.rc14'
12
12
  gem.authors = ['Yusuke KUOKA']
13
13
  gem.email = ['ykuoka@gmail.com']
14
14
  gem.required_ruby_version = Gem::Requirement.new('>= 2.0')
@@ -483,6 +483,12 @@ module Fluent::Plugin
483
483
  # Filter out invalid non-Hash entries.
484
484
  def each_valid_record(chunk)
485
485
  chunk.msgpack_each do |event|
486
+ unless event.respond_to? :last
487
+ @log.warn 'Dropping a malformed event: ' \
488
+ "'#{event.inspect}'. " \
489
+ 'A log record should be an array.'
490
+ next
491
+ end
486
492
  record = event.last
487
493
  unless record.is_a?(Hash)
488
494
  @log.warn 'Dropping log entries with malformed record: ' \
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fluent-plugin-datadog-log
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0.rc13
4
+ version: 0.1.0.rc14
5
5
  platform: ruby
6
6
  authors:
7
7
  - Yusuke KUOKA
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-12-07 00:00:00.000000000 Z
11
+ date: 2017-12-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: fluentd
@@ -173,6 +173,7 @@ files:
173
173
  - lib/fluent/plugin/monitoring.rb
174
174
  - lib/fluent/plugin/out_datadog_log.rb
175
175
  - lib/fluent/plugin/out_datadog_log.rb~
176
+ - pkg/fluent-plugin-datadog-log-0.1.0.rc13.gem
176
177
  - test/helper.rb
177
178
  - test/plugin/base_test.rb
178
179
  - test/plugin/constants.rb