diff options
author | blahed <trvsdnn@gmail.com> | 2018-12-03 19:40:46 -0500 |
---|---|---|
committer | blahed <trvsdnn@gmail.com> | 2018-12-03 19:40:46 -0500 |
commit | 8e25e9e3153d3564b6b60f840a71bd2ad9a6387c (patch) | |
tree | 3ecf64fa5f556261032df3b30a6441af77b42a61 /actionpack | |
parent | 6ca6478a67ecdff58c29d10cd408b7259ed89e2b (diff) | |
download | rails-8e25e9e3153d3564b6b60f840a71bd2ad9a6387c.tar.gz rails-8e25e9e3153d3564b6b60f840a71bd2ad9a6387c.tar.bz2 rails-8e25e9e3153d3564b6b60f840a71bd2ad9a6387c.zip |
colorize the unpermitted params log message
Diffstat (limited to 'actionpack')
-rw-r--r-- | actionpack/lib/action_controller/log_subscriber.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/actionpack/lib/action_controller/log_subscriber.rb b/actionpack/lib/action_controller/log_subscriber.rb index afbd38e7fe..d8b04d8ddb 100644 --- a/actionpack/lib/action_controller/log_subscriber.rb +++ b/actionpack/lib/action_controller/log_subscriber.rb @@ -56,7 +56,7 @@ module ActionController 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 |