fluent-plugin-rewrite 0.0.9 → 0.0.10

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |gem|
2
2
  gem.name = "fluent-plugin-rewrite"
3
- gem.version = '0.0.9'
3
+ gem.version = '0.0.10'
4
4
  gem.authors = ["Kentaro Kuribayashi"]
5
5
  gem.email = ["kentarok@gmail.com"]
6
6
  gem.homepage = "http://github.com/kentaro/fluent-plugin-rewrite"
@@ -2,8 +2,9 @@ module Fluent
2
2
  class RewriteOutput < Output
3
3
  Fluent::Plugin.register_output('rewrite', self)
4
4
 
5
- config_param :remove_prefix, :string, :default => nil
6
- config_param :add_prefix, :string, :default => nil
5
+ config_param :remove_prefix, :string, :default => nil
6
+ config_param :add_prefix, :string, :default => nil
7
+ config_param :enable_warnings, :bool, :default => false
7
8
 
8
9
  attr_reader :rules
9
10
 
@@ -57,7 +58,9 @@ module Fluent
57
58
  if filtered_tag && record && _tag != filtered_tag
58
59
  Engine.emit(filtered_tag, time, record)
59
60
  else
60
- $log.warn "Can not emit message because the tag(#{tag}) has not changed. Dropped record #{record}"
61
+ if @enable_warnings
62
+ $log.warn "Can not emit message because the tag(#{tag}) has not changed. Dropped record #{record}"
63
+ end
61
64
  end
62
65
  end
63
66
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fluent-plugin-rewrite
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.9
4
+ version: 0.0.10
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-01-15 00:00:00.000000000 Z
12
+ date: 2013-04-26 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rake
@@ -104,3 +104,4 @@ summary: Fluentd plugin to rewrite tags/values along with pattern matching and r
104
104
  test_files:
105
105
  - test/plugin/test_out_rewrite.rb
106
106
  - test/test_helper.rb
107
+ has_rdoc: