fluent-plugin-forest 0.3.2 → 0.3.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 +4 -4
- data/fluent-plugin-forest.gemspec +1 -1
- data/lib/fluent/plugin/out_forest.rb +9 -5
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9d812e7f9c4a4cfc21a74375b20f794ac00249db
|
4
|
+
data.tar.gz: 53f42f5830c1d0a077a2028474fe4e523ed985f9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4387b8ba78eca911e6c873321b55848fdd7cbcedf854f505114bf82c919d6ca6decfea57a7c0acd3c65ac702c3c4fe1f43951fbaf21889ac5a7956454f7ebec5
|
7
|
+
data.tar.gz: ea77723d57c15c59aa8a4075206b3d8bf1f3ce52847d2136a476c28e99a7853e2079394ae54d0bb1ad2b7e96d8a6c2834d7a86bb980dd7926417a8ba7242088b
|
@@ -1,7 +1,7 @@
|
|
1
1
|
# -*- encoding: utf-8 -*-
|
2
2
|
Gem::Specification.new do |gem|
|
3
3
|
gem.name = "fluent-plugin-forest"
|
4
|
-
gem.version = "0.3.
|
4
|
+
gem.version = "0.3.3"
|
5
5
|
gem.authors = ["TAGOMORI Satoshi"]
|
6
6
|
gem.email = ["tagomoris@gmail.com"]
|
7
7
|
gem.description = %q{create sub-plugin dynamically per tags, with template configuration and parameters}
|
@@ -168,11 +168,15 @@ class Fluent::ForestOutput < Fluent::MultiOutput
|
|
168
168
|
unless output
|
169
169
|
output = plant(tag)
|
170
170
|
end
|
171
|
-
if output
|
172
|
-
output.emit_events
|
173
|
-
|
174
|
-
|
171
|
+
if output
|
172
|
+
if output.respond_to?(:emit_events)
|
173
|
+
output.emit_events(tag, es)
|
174
|
+
else
|
175
|
+
output.emit(tag, es, chain)
|
176
|
+
end
|
177
|
+
chain.next
|
178
|
+
else # cannot plant an output (configuration error, or ...?)
|
179
|
+
chain.next
|
175
180
|
end
|
176
|
-
chain.next
|
177
181
|
end
|
178
182
|
end
|