Sha256: 4de5bef61c82e3e5cf1e8f9062c92d22ebef74f5b5b143584dbff765843332ac

Contents?: true

Size: 908 Bytes

Versions: 16

Compression:

Stored size: 908 Bytes

Contents

# frozen_string_literal: true
module Sapience
  class ErrorHandler
    class Silent < Sapience::ErrorHandler

      #   level: [:trace | :debug | :info | :warn | :error | :fatal]
      #    Override the log level for this appender.
      #    Default: Sapience.config.default_level
      #
      #   dsn: [String]
      #     Url to configure Sentry-Raven.
      #     Default: nil
      def initialize(_options = {})
        Sapience.logger.warn "Error handler is not configured. See documentation for more information."
      end

      def capture_exception(_exception, _payload = {})
        nil
      end

      def capture_message(_message, _payload = {})
        nil
      end

      def capture(_options: {})
        nil
      end
      alias capture! capture

      def user_context(_options = {})
        nil
      end

      def tags_context(_options = {})
        nil
      end
    end
  end
end

Version data entries

16 entries across 16 versions & 1 rubygems

Version Path
sapience-3.0 lib/sapience/error_handler/silent.rb
sapience-2.15 lib/sapience/error_handler/silent.rb
sapience-2.14 lib/sapience/error_handler/silent.rb
sapience-2.13 lib/sapience/error_handler/silent.rb
sapience-2.12 lib/sapience/error_handler/silent.rb
sapience-2.11 lib/sapience/error_handler/silent.rb
sapience-2.10 lib/sapience/error_handler/silent.rb
sapience-2.9.1 lib/sapience/error_handler/silent.rb
sapience-2.8 lib/sapience/error_handler/silent.rb
sapience-2.7.0 lib/sapience/error_handler/silent.rb
sapience-2.6.1 lib/sapience/error_handler/silent.rb
sapience-2.6.0 lib/sapience/error_handler/silent.rb
sapience-2.5.4 lib/sapience/error_handler/silent.rb
sapience-2.5.3 lib/sapience/error_handler/silent.rb
sapience-2.5.2 lib/sapience/error_handler/silent.rb
sapience-2.5.0 lib/sapience/error_handler/silent.rb