fluent-plugin-keep-forward 0.1.1 → 0.1.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +6 -0
- data/README.md +1 -1
- data/fluent-plugin-keep-forward.gemspec +1 -1
- data/lib/fluent/plugin/out_keep_forward.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: ae46708b29b44194062b9985c6d5cab371785a27
|
4
|
+
data.tar.gz: 2038eb737536f4bacd779e0d2f40a8a2081f6f14
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8f885899158c22a334a6fe027dad4fd5c2ff48e081bb78b93c56593aeb2337411d4b64251ffb54d43f8b5f0a579b30d3cc01a7daf80030536e67006484777366
|
7
|
+
data.tar.gz: 74cec077f9b1bf83d62eac10a9ab6e8308a58a5b0baa1f0868ae4ace0a234e3fc5a313e9e18330aca0d2556a1194a32639b74f791bb9277d5a490b3b4809eece
|
data/CHANGELOG.md
CHANGED
data/README.md
CHANGED
@@ -18,7 +18,7 @@ Following parameters are additionally available:
|
|
18
18
|
|
19
19
|
- keepalive_time (time)
|
20
20
|
|
21
|
-
Keepalive expired time. Default is nil (which means as long as possible).
|
21
|
+
Keepalive expired time. Default is nil (which means to keep connection as long as possible).
|
22
22
|
|
23
23
|
- prefer_recover (bool)
|
24
24
|
|
@@ -3,7 +3,7 @@ $:.push File.expand_path("../lib", __FILE__)
|
|
3
3
|
|
4
4
|
Gem::Specification.new do |s|
|
5
5
|
s.name = "fluent-plugin-keep-forward"
|
6
|
-
s.version = "0.1.
|
6
|
+
s.version = "0.1.2"
|
7
7
|
s.authors = ["Naotoshi Seo"]
|
8
8
|
s.email = ["sonots@gmail.com"]
|
9
9
|
s.homepage = "https://github.com/sonots/fluent-plugin-keep-forward"
|
@@ -3,6 +3,11 @@ require 'fluent/plugin/out_forward'
|
|
3
3
|
class Fluent::KeepForwardOutput < Fluent::ForwardOutput
|
4
4
|
Fluent::Plugin.register_output('keep_forward', self)
|
5
5
|
|
6
|
+
# To support log_level option implemented by Fluentd v0.10.43
|
7
|
+
unless method_defined?(:log)
|
8
|
+
define_method("log") { $log }
|
9
|
+
end
|
10
|
+
|
6
11
|
config_param :prefer_recover, :bool, :default => true
|
7
12
|
config_param :keepalive, :bool, :default => false
|
8
13
|
config_param :keepalive_time, :time, :default => nil # infinite
|
@@ -101,7 +106,7 @@ class Fluent::KeepForwardOutput < Fluent::ForwardOutput
|
|
101
106
|
sock_write(sock, tag, chunk)
|
102
107
|
node.heartbeat(false)
|
103
108
|
rescue Errno::EPIPE, Errno::ECONNRESET, Errno::ECONNABORTED, Errno::ETIMEDOUT => e
|
104
|
-
|
109
|
+
log.warn "out_keep_forward: #{e.class} #{e.message}"
|
105
110
|
sock = reconnect(node)
|
106
111
|
retry
|
107
112
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: fluent-plugin-keep-forward
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Naotoshi Seo
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2014-02-04 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: fluentd
|