Skip to content

Commit

Permalink
Use log_level= instead of send
Browse files Browse the repository at this point in the history
  • Loading branch information
repeatedly committed Mar 15, 2017
1 parent e712ab5 commit ff110fe
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/fluent/system_config.rb
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ def attach(supervisor)
# info level can't be specified via command line option.
# log_level is info here, it is default value and <system>'s log_level should be applied if exists.
if ll_value != Fluent::Log::LEVEL_INFO
system.send("log_level=", ll_value)
system.log_level = ll_value
end
else
next unless instance_variable_defined?("@#{param}")
Expand Down

0 comments on commit ff110fe

Please sign in to comment.