Sha256: f683914c618baf60b2d2f59535e4aa6b1eb6e766415ce6e9eb853315e8ffc5c8

Contents?: true

Size: 304 Bytes

Versions: 31

Compression:

Stored size: 304 Bytes

Contents

module Rollbar
  module Scrubbers
    extend self

    def scrub_value(value)
      if Rollbar.configuration.randomize_scrub_length
        random_filtered_value
      else
        '*' * (value.length rescue 8)
      end
    end

    def random_filtered_value
      '*' * (rand(5) + 3)
    end
  end
end

Version data entries

31 entries across 31 versions & 1 rubygems

Version Path
rollbar-2.19.2 lib/rollbar/scrubbers.rb
rollbar-2.19.1 lib/rollbar/scrubbers.rb
rollbar-2.19.0 lib/rollbar/scrubbers.rb
rollbar-2.18.2 lib/rollbar/scrubbers.rb
rollbar-2.18.0 lib/rollbar/scrubbers.rb
rollbar-2.17.0 lib/rollbar/scrubbers.rb
rollbar-2.16.4 lib/rollbar/scrubbers.rb
rollbar-2.16.3 lib/rollbar/scrubbers.rb
rollbar-2.16.2 lib/rollbar/scrubbers.rb
rollbar-2.16.0 lib/rollbar/scrubbers.rb
rollbar-2.15.6 lib/rollbar/scrubbers.rb
rollbar-2.15.5 lib/rollbar/scrubbers.rb
rollbar-2.15.4 lib/rollbar/scrubbers.rb
rollbar-2.15.3 lib/rollbar/scrubbers.rb
rollbar-2.15.2 lib/rollbar/scrubbers.rb
rollbar-2.15.1 lib/rollbar/scrubbers.rb
rollbar-2.15.0 lib/rollbar/scrubbers.rb
rollbar-2.14.1 lib/rollbar/scrubbers.rb
rollbar-2.14.0 lib/rollbar/scrubbers.rb
rollbar-2.13.3 lib/rollbar/scrubbers.rb