fluent-plugin-record-reformer 0.2.5 → 0.2.6

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,3 +1,9 @@
1
+ ## 0.2.6 (2014/02/24)
2
+
3
+ Enhancement:
4
+
5
+ * Add debug log
6
+
1
7
  ## 0.2.5 (2014/02/04)
2
8
 
3
9
  Enhancement:
@@ -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-record-reformer"
6
- gem.version = "0.2.5"
6
+ gem.version = "0.2.6"
7
7
  gem.authors = ["Naotoshi Seo"]
8
8
  gem.email = "sonots@gmail.com"
9
9
  gem.homepage = "https://github.com/sonots/fluent-plugin-record-reformer"
@@ -68,13 +68,16 @@ module Fluent
68
68
  'tag_suffix' => tag_suffix,
69
69
  'hostname' => @hostname,
70
70
  }
71
- es.each { |time, record|
71
+ last_record = nil
72
+ es.each {|time, record|
73
+ last_record = record # for debug log
72
74
  new_tag, new_record = reform(@output_tag, time, record, placeholders)
73
75
  Engine.emit(new_tag, time, new_record)
74
76
  }
75
77
  chain.next
76
78
  rescue => e
77
79
  log.warn "record_reformer: #{e.class} #{e.message} #{e.backtrace.first}"
80
+ log.debug "record_reformer: output_tag:#{@output_tag} map:#{@map} record:#{last_record} placeholders:#{placeholders}"
78
81
  end
79
82
 
80
83
  private
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fluent-plugin-record-reformer
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.5
4
+ version: 0.2.6
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: 2014-02-04 00:00:00.000000000 Z
12
+ date: 2014-02-24 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: fluentd
@@ -125,7 +125,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
125
125
  version: '0'
126
126
  segments:
127
127
  - 0
128
- hash: -533835793
128
+ hash: 494390611
129
129
  required_rubygems_version: !ruby/object:Gem::Requirement
130
130
  none: false
131
131
  requirements:
@@ -134,7 +134,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
134
134
  version: '0'
135
135
  segments:
136
136
  - 0
137
- hash: -533835793
137
+ hash: 494390611
138
138
  requirements: []
139
139
  rubyforge_project:
140
140
  rubygems_version: 1.8.23