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
Post a Comment