Filter logging raw post data in rails -


i have mobile app posting , receiving json rails app, problem raw json shows in log. there way filter it?

you want add filter_parameters. here's default one:

$ cat config/initializers/filter_parameter_logging.rb # sure restart server when modify file.  # configure sensitive parameters filtered log file. rails.application.config.filter_parameters += [:password] 

Comments

Popular posts from this blog

java - Run a .jar on Heroku -

java - Jtable duplicate Rows -

validation - How to pass paramaters like unix into windows batch file -