Sha256: 6f8c200d5c166d39071cc66b2e03f1990b7582d48c18c46d7f23e63a4d79face

Contents?: true

Size: 410 Bytes

Versions: 3

Compression:

Stored size: 410 Bytes

Contents

require 'json'

module Raven
  class Processor
    attr_accessor :sanitize_fields

    def initialize(client)
      @client = client
      @sanitize_fields = client.configuration.sanitize_fields
    end

    def process(data)
      data
    end

    private

    def parse_json_or_nil(string)
      begin
        OkJson.decode(string)
      rescue Raven::OkJson::Error
        nil
      end
    end

  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
sentry-raven-0.12.3 lib/raven/processor.rb
sentry-raven-0.12.2 lib/raven/processor.rb
sentry-raven-0.12.1 lib/raven/processor.rb