Skip to content

Commit

Permalink
colorize the unpermitted params log message
Browse files Browse the repository at this point in the history
  • Loading branch information
trvsdnn committed Dec 4, 2018
1 parent 6ca6478 commit 8e25e9e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion actionpack/lib/action_controller/log_subscriber.rb
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ def send_data(event)
def unpermitted_parameters(event)
debug do
unpermitted_keys = event.payload[:keys]
"Unpermitted parameter#{'s' if unpermitted_keys.size > 1}: #{unpermitted_keys.map { |e| ":#{e}" }.join(", ")}"
color("Unpermitted parameter#{'s' if unpermitted_keys.size > 1}: #{unpermitted_keys.map { |e| ":#{e}" }.join(", ")}", RED)
end
end

Expand Down

0 comments on commit 8e25e9e

Please sign in to comment.