fluent-plugin-mqtt-io 0.3.6 → 0.3.7

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: 6e38c839b0a95cb6cf2cebc4c54d2b6c7b40529c
4
- data.tar.gz: 2070c495dd6162a84477057b41170b95880b82b7
3
+ metadata.gz: 89977224644dcad774041ad72c1a3e868d1465e3
4
+ data.tar.gz: f184e0d4d53a03144a06d823ccc0393204b42629
5
5
  SHA512:
6
- metadata.gz: 49a35a2dccbe28249c27731ac447a63d7f8462d0005486fa1736dc5f1316fa43ec46f09573ea758120b0d2c7dac8136b44f946e6cb7a3e16c39dac0b568eb5e1
7
- data.tar.gz: d06614888b953bf57df4ab2110947f1ec77d2a489fe6bfcc27f0b1e3692397c140178d693aa6bb3981f807f9d32a5546cba9a8528a862c4ba8cf207a7d1d872b
6
+ metadata.gz: 214caaca65e46547aafba96dbb41aebe7bc1e5fa4e32f6d6e27482a3544b2044eb1bb85dfb91fbb25720f56e660cbdee2aa7d4c2e2856a3dedbe807749356028
7
+ data.tar.gz: 5077577db2a50d71c970317b0ad4ee1daa08048099f2341ec8d2a9bd8bc03f23a61c24a02eb99eedf217d1a76cad90091e00e7a46a61f0203160fa0137a4802f
@@ -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-mqtt-io"
7
- spec.version = "0.3.6"
7
+ spec.version = "0.3.7"
8
8
  spec.authors = ["Toyokazu Akiyama"]
9
9
  spec.email = ["toyokazu@gmail.com"]
10
10
 
@@ -93,7 +93,7 @@ module Fluent::Plugin
93
93
  log.debug "Since time_key field is nil, Fluent::EventTime.now is used."
94
94
  time = Fluent::EventTime.now
95
95
  end
96
- return [time, add_recv_time(record)]
96
+ return [time, record]
97
97
  end
98
98
  end
99
99
 
@@ -101,15 +101,16 @@ module Fluent::Plugin
101
101
  begin
102
102
  tag = topic.gsub("/","\.")
103
103
  time, record = parse(message)
104
- log.debug "MqttInput#emit: #{tag}, #{time}, #{add_recv_time(record)}"
105
104
  if record.is_a?(Array)
106
105
  mes = Fluent::MultiEventStream.new
107
106
  record.each do |single_record|
108
- mes.add(@parser.parse_time(single_record), single_record)
107
+ log.debug "MqttInput#emit: #{tag}, #{time}, #{add_recv_time(single_record)}"
108
+ mes.add(@parser.parse_time(single_record), add_recv_time(single_record))
109
109
  end
110
110
  router.emit_stream(tag, mes)
111
111
  else
112
- router.emit(tag, time, record)
112
+ log.debug "MqttInput#emit: #{tag}, #{time}, #{add_recv_time(record)}"
113
+ router.emit(tag, time, add_recv_time(record))
113
114
  end
114
115
  rescue Exception => e
115
116
  log.error error: e.to_s
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fluent-plugin-mqtt-io
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.6
4
+ version: 0.3.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Toyokazu Akiyama
8
8
  autorequire:
9
9
  bindir: []
10
10
  cert_chain: []
11
- date: 2017-08-29 00:00:00.000000000 Z
11
+ date: 2017-08-30 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: fluentd