Skip to content

Commit 25c38dd

Browse files
committed
Different formatting
1 parent 4b874be commit 25c38dd

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

lib/fluent/plugin/filter_record_modifier.rb

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,33 +8,33 @@ class Plugin::RecordModifierFilter < Plugin::Filter
88
desc: <<-DESC
99
Prepare values for filtering in configure phase. Prepared values can be used in <record>.
1010
You can write any ruby code.
11-
DESC
11+
DESC
1212
config_param :char_encoding, :string, default: nil,
1313
desc: <<-DESC
1414
Fluentd including some plugins treats the logs as a BINARY by default to forward.
1515
But an user sometimes processes the logs depends on their requirements,
1616
e.g. handling char encoding correctly.
1717
In more detail, please refer this section:
1818
https://github.com/repeatedly/fluent-plugin-record-modifier#char_encoding.
19-
DESC
19+
DESC
2020
config_param :remove_keys, :string, default: nil,
2121
desc: <<-DESC
2222
The logs include needless record keys in some cases.
2323
You can remove it by using `remove_keys` parameter.
2424
This option is exclusive with `whitelist_keys`.
25-
DESC
25+
DESC
2626

2727
config_param :whitelist_keys, :string, default: nil,
2828
desc: <<-DESC
2929
Specify `whitelist_keys` to remove all unexpected keys and values from events.
3030
Modified events will have only specified keys (if exist in original events).
3131
This option is exclusive with `remove_keys`.
32-
DESC
32+
DESC
3333

3434
config_param :replace, :bool, default: false,
3535
desc: <<-DESC
3636
Boolean flag to enable replace function. Default is false.
37-
DESC
37+
DESC
3838

3939
def configure(conf)
4040
super

test/test_filter_record_modifier.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ def test_convert_char_encoding
8585

8686
assert_equal [
8787
{"k" => 'v'.force_encoding('cp932')},
88-
{"k" => %w(v ).map {|v| v.encode!('cp932')}},
88+
{"k" => %w(v ).map{|v| v.encode!('cp932')}},
8989
{"k" => {"l" => 'ビ'.encode!('cp932')}},
9090
], d.filtered.map { |e| e.last }
9191
end

0 commit comments

Comments
 (0)