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 +4 -4
- data/fluent-plugin-mqtt-io.gemspec +1 -1
- data/lib/fluent/plugin/in_mqtt.rb +5 -4
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 89977224644dcad774041ad72c1a3e868d1465e3
|
4
|
+
data.tar.gz: f184e0d4d53a03144a06d823ccc0393204b42629
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 214caaca65e46547aafba96dbb41aebe7bc1e5fa4e32f6d6e27482a3544b2044eb1bb85dfb91fbb25720f56e660cbdee2aa7d4c2e2856a3dedbe807749356028
|
7
|
+
data.tar.gz: 5077577db2a50d71c970317b0ad4ee1daa08048099f2341ec8d2a9bd8bc03f23a61c24a02eb99eedf217d1a76cad90091e00e7a46a61f0203160fa0137a4802f
|
@@ -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,
|
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
|
-
|
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
|
-
|
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.
|
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-
|
11
|
+
date: 2017-08-30 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: fluentd
|