Skip to content

Commit

Permalink
Add trace log to suppress warnings
Browse files Browse the repository at this point in the history
But these variables used in templates/plugin_config_formatter/section.md.erb

lib/fluent/command/plugin_config_formatter.rb:167: warning: assigned but unused variable - required
lib/fluent/command/plugin_config_formatter.rb:168: warning: assigned but unused variable - multi
lib/fluent/command/plugin_config_formatter.rb:169: warning: assigned but unused variable - alias_name
  • Loading branch information
okkez committed Jan 30, 2017
1 parent 0043507 commit 78e987c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/fluent/command/plugin_config_formatter.rb
Original file line number Diff line number Diff line change
Expand Up @@ -167,6 +167,7 @@ def dump_section_markdown(base_section, level = 0)
required = sub_section.delete(:required)
multi = sub_section.delete(:multi)
alias_name = sub_section.delete(:alias)
$log.trace(name: section_name, required: required, multi: multi, alias_name: alias_name)
sub_section.delete(:section)
dumped << ERB.new(template_path("section.md.erb").read, nil, "-").result(binding)
end
Expand Down

0 comments on commit 78e987c

Please sign in to comment.