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

Line ending issue with Mercurial or Visual Studio -

java - Jtable duplicate Rows -

java - Run a .jar on Heroku -