You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
HttpLog.configuredo |config|
config.filter_parameters=(/date_?of_?birth|dob/)endmoduleHttpLogclass << selfdefmasked_data(msg)casemsgwhenHashHash[msg.map{ |key,value| [key,mask?(key) ? PARAM_MASK : masked_data(value)]}]whenArraymsg.map{ |element| masked_data(element)}elsemsgendend# this is slow but not a hotpath, all regexps and strings could be compiled into one regexp.defmask?(key)config.filter_parameters.any?do |filter_parameter|
iffilter_parameter.is_a?(Regexp)key =~ filter_parameterelsekey.downcase == filter_parameterendendendendend
The text was updated successfully, but these errors were encountered:
Regexps are more powerful:
The text was updated successfully, but these errors were encountered: