Sha256: 8e1a4b6713d6c272bec0f6b4b6b7504b6a9ea380a6f085ed8e9b3782df75e69a

Contents?: true

Size: 406 Bytes

Versions: 4

Compression:

Stored size: 406 Bytes

Contents

module Logster
  class SuppressionPattern < Pattern
    def self.set_name
      "__LOGSTER__suppression_patterns_set".freeze
    end

    def save
      super
      @store.clear_suppression_patterns_cache
    end

    def destroy(clear_cache: true) # arg used in tests
      super()
      @store.remove_ignore_count(self.to_s)
      @store.clear_suppression_patterns_cache if clear_cache
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
logster-2.3.3 lib/logster/suppression_pattern.rb
logster-2.3.2 lib/logster/suppression_pattern.rb
logster-2.3.1 lib/logster/suppression_pattern.rb
logster-2.3.0 lib/logster/suppression_pattern.rb