fluent-plugin-hash-forward 0.3.1 → 0.3.2

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: a0afb6cf6c53fa7e63173685f40958889da2f770
4
- data.tar.gz: e6a1bc25cc85e1d075cb4bc48579a77dc4a71958
3
+ metadata.gz: dc5f372dbd73daa73bc4a7da282a7edf386195a6
4
+ data.tar.gz: bff3830548afa79073a48dab264cb7a484f36cab
5
5
  SHA512:
6
- metadata.gz: 0075b38f21756454e85d18632e7d57d3994c14491b119494560142e379c6bd6e4b968ee42b147bd118d4cd53ace4cc65888f2a19e40b25418ecc59ba439fecc6
7
- data.tar.gz: c8b4a6b1361a1c17a78aaf022729c37e8ea09be612fc870c062559b154182422c0e5f740646825e215a62cd31a96a7cab0037ae392e22c686f64576e3781af04
6
+ metadata.gz: 513d76863848a0de51a6675eb9b2e7b472d371e2ab69a0c1c47b3769ffc9dc2c75a005a064b5c3a8fd8bf8b4aaa43ca38365310d2f344f41ddf1fb319eef2fc7
7
+ data.tar.gz: 5f8e77d7b1eb80719aad7b9ce1a8981dc84526b9451619074ec2920f595e25833b25652ff8a6e9dc16fa18efa9e4f1855f1c60edf4c7a4e7c92120793dce9dae
data/CHANGELOG.md CHANGED
@@ -1,3 +1,9 @@
1
+ # 0.3.2 (2014/02/04)
2
+
3
+ Enhancement:
4
+
5
+ * Support `log_level` option of Fleuntd v0.10.43
6
+
1
7
  # 0.3.1 (2013/12/11)
2
8
 
3
9
  Changes
@@ -3,10 +3,10 @@ $:.push File.expand_path("../lib", __FILE__)
3
3
 
4
4
  Gem::Specification.new do |s|
5
5
  s.name = "fluent-plugin-hash-forward"
6
- s.version = "0.3.1"
6
+ s.version = "0.3.2"
7
7
  s.authors = ["Ryosuke IWANAGA", "Naotoshi Seo"]
8
8
  s.email = ["riywo.jp@gmail.com", "sonots@gmail.com"]
9
- s.homepage = "https://github.com/sonots/fluent-plugin-hash-forward"
9
+ s.homepage = "https://github.com/riywo/fluent-plugin-hash-forward"
10
10
  s.summary = %q{Fluentd plugin to keep forwarding messsages of a specific tag pattern to a specific node}
11
11
  s.description = s.summary
12
12
  s.licenses = ["MIT"]
@@ -3,6 +3,11 @@ require 'fluent/plugin/out_forward'
3
3
  class Fluent::HashForwardOutput < Fluent::ForwardOutput
4
4
  Fluent::Plugin.register_output('hash_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 :hash_key_slice, :string, :default => nil
7
12
  config_param :keepalive, :bool, :default => false
8
13
  config_param :keepalive_time, :time, :default => nil # infinite
@@ -145,7 +150,7 @@ class Fluent::HashForwardOutput < Fluent::ForwardOutput
145
150
  sock_write(sock, tag, chunk)
146
151
  node.heartbeat(false)
147
152
  rescue Errno::EPIPE, Errno::ECONNRESET, Errno::ECONNABORTED, Errno::ETIMEDOUT => e
148
- $log.warn "out_hash_forward: #{e.class} #{e.message}"
153
+ log.warn "out_hash_forward: #{e.class} #{e.message}"
149
154
  sock = reconnect(node)
150
155
  retry
151
156
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fluent-plugin-hash-forward
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.1
4
+ version: 0.3.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ryosuke IWANAGA
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-12-10 00:00:00.000000000 Z
12
+ date: 2014-02-04 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: fluentd
@@ -99,7 +99,7 @@ files:
99
99
  - lib/fluent/plugin/out_hash_forward.rb
100
100
  - spec/out_hash_forward_spec.rb
101
101
  - spec/spec_helper.rb
102
- homepage: https://github.com/sonots/fluent-plugin-hash-forward
102
+ homepage: https://github.com/riywo/fluent-plugin-hash-forward
103
103
  licenses:
104
104
  - MIT
105
105
  metadata: {}