Sha256: 4257da8a6245b345932d3b375195ba3c86fbe024cb03cf5883e0ab0256c61aa2

Contents?: true

Size: 284 Bytes

Versions: 11

Compression:

Stored size: 284 Bytes

Contents

module Rollbar
  module Scrubbers
    module_function

    def scrub_value(_value)
      if Rollbar.configuration.randomize_scrub_length
        random_filtered_value
      else
        '*' * 6
      end
    end

    def random_filtered_value
      '*' * rand(3..7)
    end
  end
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
rollbar-3.6.0 lib/rollbar/scrubbers.rb
rollbar-3.5.2 lib/rollbar/scrubbers.rb
rollbar-3.5.1 lib/rollbar/scrubbers.rb
rollbar-3.5.0 lib/rollbar/scrubbers.rb
rollbar-3.4.2 lib/rollbar/scrubbers.rb
rollbar-3.4.1 lib/rollbar/scrubbers.rb
rollbar-3.4.0 lib/rollbar/scrubbers.rb
rollbar-3.3.3 lib/rollbar/scrubbers.rb
rollbar-3.3.2 lib/rollbar/scrubbers.rb
rollbar-3.3.1 lib/rollbar/scrubbers.rb
rollbar-3.3.0 lib/rollbar/scrubbers.rb