fluent-plugin-amplifier-filter 0.1.3 → 0.1.4

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: 6acd89a0edc3a3ac9ad742fb236c97fbd9b6f7de
4
- data.tar.gz: daf099e6da0956e49f5de7f95c09289849a7650a
3
+ metadata.gz: ab5955dcb3adc2aea8ee884012c22a99b705a552
4
+ data.tar.gz: cdb87072dbde32a9cd47cdf36891ddb1a663f2a9
5
5
  SHA512:
6
- metadata.gz: 7af53a095884d74fa57cd7d086d0bdd9dd1fb3b3db270b9de9895a506ac0946b66ecabe207c28521d316fed606006f9c5caa05f6252293551f2cc274ed1c034b
7
- data.tar.gz: e6fa2fb21810f44338ef24225fb2a365ebf2ee0702fb995f054fb5a63ee556cd1e92b420a3cc1cdd06d40b5513bdce9d3a6e3d45ede4eb73b507bd49fa5e256f
6
+ metadata.gz: 0075609bff8cd075d4bc463ad32b50245921d204a93845047f4b1f22a9d683cb611af231099f7f2af2cd28bb4f20c2acefb5514e808e1b0f872cd8cdabe03b38
7
+ data.tar.gz: cb1fdbced99186b443d99342ea61cbfed5bd3be4c5f6a2645b53feb498cdbd860310a6a30a943d5291954b21520b0798c4b79b7c7f61f016eaee920f29808f7c
@@ -1,7 +1,7 @@
1
1
  # -*- encoding: utf-8 -*-
2
2
  Gem::Specification.new do |gem|
3
3
  gem.name = "fluent-plugin-amplifier-filter"
4
- gem.version = "0.1.3"
4
+ gem.version = "0.1.4"
5
5
  gem.authors = ["TAGOMORI Satoshi"]
6
6
  gem.email = ["tagomoris@gmail.com"]
7
7
  gem.summary = %q{plugin to re-emit messages with amplified values}
@@ -34,7 +34,7 @@ class Fluent::AmplifierFilterOutput < Fluent::Output
34
34
  end
35
35
  (class << self; self; end).module_eval do
36
36
  define_method(:amp, amp)
37
- end
37
+ end
38
38
 
39
39
  if not @remove_prefix and not @add_prefix
40
40
  raise Fluent::ConfigError, "missing both of remove_prefix and add_prefix"
@@ -60,7 +60,7 @@ class Fluent::AmplifierFilterOutput < Fluent::Output
60
60
  if @remove_prefix and
61
61
  ( (tag.start_with?(@removed_prefix_string) and tag.length > @removed_length) or tag == @remove_prefix)
62
62
  tag = tag[@removed_length..-1]
63
- end
63
+ end
64
64
  if @add_prefix
65
65
  tag = if tag and tag.length > 0
66
66
  @added_prefix_string + tag
@@ -78,8 +78,8 @@ class Fluent::AmplifierFilterOutput < Fluent::Output
78
78
  next unless val
79
79
  updated[key] = amp(val)
80
80
  }
81
- $log.info "amplifier tag:#{tag} amp:#{self.method(:amp)}"
82
- $log.info "amplifier tag:#{tag} debug ratio:#{@ratio} updated:#{updated.to_json} record:#{record.to_json}"
81
+ $log.debug "amplifier tag:#{tag} amp:#{self.method(:amp)}"
82
+ $log.debug "amplifier tag:#{tag} debug ratio:#{@ratio} updated:#{updated.to_json} record:#{record.to_json}"
83
83
  if updated.size > 0
84
84
  pairs.push [time, record.merge(updated)]
85
85
  else
@@ -93,10 +93,10 @@ class Fluent::AmplifierFilterOutput < Fluent::Output
93
93
  val = record[key]
94
94
  next unless val
95
95
  next unless @key_pattern.match(key)
96
- updated[key] = amp(val)
96
+ updated[key] = amp(val)
97
97
  }
98
- $log.info "amplifier tag:#{tag} amp:#{self.method(:amp)}"
99
- $log.info "amplifier tag:#{tag} debug ratio:#{@ratio} updated:#{updated.to_json} record:#{record.to_json}"
98
+ $log.debug "amplifier tag:#{tag} amp:#{self.method(:amp)}"
99
+ $log.debug "amplifier tag:#{tag} debug ratio:#{@ratio} updated:#{updated.to_json} record:#{record.to_json}"
100
100
  if updated.size > 0
101
101
  pairs.push [time, record.merge(updated)]
102
102
  else
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fluent-plugin-amplifier-filter
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.3
4
+ version: 0.1.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - TAGOMORI Satoshi
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2013-04-12 00:00:00.000000000 Z
11
+ date: 2013-04-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: fluentd