fluent-plugin-reemit 0.0.2 → 0.0.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/CHANGELOG.md +6 -0
- data/fluent-plugin-reemit.gemspec +1 -1
- data/lib/fluent/plugin/out_reemit.rb +6 -1
- 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: 28e555df53cba5c36b2e18a3ac61c83bdf1b1ede
|
4
|
+
data.tar.gz: 9f2ee252b827c5d47131bd7a5b78fa83d6dca1d7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b586019a20b552fdef247349ffcd6447c647c3dbbd3cb5f0268845efa8ad4f9aa380a43dcc1e5c0af9cbec0dfb253f92d9a633b321c717553eab9a5118e84127
|
7
|
+
data.tar.gz: f0d0a817bc8d0d49ca071f9d9f89164f1ffde2e010c7b3f06a1ca2615e2d2618601926218c53cb0c741391bfc4f7740ef38e97ddc11ac5de0f5df170efe0a977
|
data/CHANGELOG.md
CHANGED
@@ -3,7 +3,7 @@ $:.push File.expand_path('../lib', __FILE__)
|
|
3
3
|
|
4
4
|
Gem::Specification.new do |gem|
|
5
5
|
gem.name = "fluent-plugin-reemit"
|
6
|
-
gem.version = "0.0.
|
6
|
+
gem.version = "0.0.3"
|
7
7
|
gem.authors = ["Naotoshi Seo"]
|
8
8
|
gem.email = "sonots@gmail.com"
|
9
9
|
gem.homepage = "https://github.com/sonots/fluent-plugin-reemit"
|
@@ -2,6 +2,11 @@ module Fluent
|
|
2
2
|
class ReemitOutput < Output
|
3
3
|
Fluent::Plugin.register_output('reemit', self)
|
4
4
|
|
5
|
+
# To support log_level option implemented by Fluentd v0.10.43
|
6
|
+
unless method_defined?(:log)
|
7
|
+
define_method("log") { $log }
|
8
|
+
end
|
9
|
+
|
5
10
|
def initialize
|
6
11
|
super
|
7
12
|
@match_cache = {}
|
@@ -15,7 +20,7 @@ module Fluent
|
|
15
20
|
engine_emit(tag, es)
|
16
21
|
chain.next
|
17
22
|
rescue => e
|
18
|
-
|
23
|
+
log.warn "reemit: #{e.class} #{e.message} #{e.backtrace.first}"
|
19
24
|
end
|
20
25
|
|
21
26
|
private
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: fluent-plugin-reemit
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Naotoshi Seo
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-
|
11
|
+
date: 2014-02-04 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: fluentd
|