Problem: Rails 5 parameter filter crashes when the input is an array rather than a hash. But is still works when the nested values are arrays. So my solution is to wrap the request and response params in a hash with the only key data, e.g. {data: ...} before parameter filtering and then unwrap it before sending it to the logger.
fixes issue #12
Problem: Rails 5 parameter filter crashes when the input is an array rather than a hash. But is still works when the nested values are arrays. So my solution is to wrap the request and response params in a hash with the only key
data
, e.g.{data: ...}
before parameter filtering and then unwrap it before sending it to the logger.