Sha256: a06767b66c5bcc6677d4e28acad859ba6c7a7d0d89efb08cd36b960deb571e46

Contents?: true

Size: 792 Bytes

Versions: 4

Compression:

Stored size: 792 Bytes

Contents

# frozen_string_literal: true

class Circuitbox
  class CircuitBreaker
    module LoggerMessages
      def circuit_skipped_message
        @circuit_skipped_message ||= "[CIRCUIT] #{service}: skipped"
      end

      def circuit_running_message
        @circuit_running_message ||= "[CIRCUIT] #{service}: running"
      end

      def circuit_success_message
        @circuit_success_message ||= "[CIRCUIT] #{service}: success"
      end

      def circuit_failure_message
        @circuit_failure_message ||= "[CIRCUIT] #{service}: failure"
      end

      def circuit_opened_message
        @circuit_opened_message ||= "[CIRCUIT] #{service}: opened"
      end

      def circuit_closed_message
        @circuit_closed_message ||= "[CIRCUIT] #{service}: closed"
      end
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
circuitbox-2.0.0.pre4 lib/circuitbox/circuit_breaker/logger_messages.rb
circuitbox-2.0.0.pre3 lib/circuitbox/circuit_breaker/logger_messages.rb
circuitbox-2.0.0.pre2 lib/circuitbox/circuit_breaker/logger_messages.rb
circuitbox-2.0.0.pre1 lib/circuitbox/circuit_breaker/logger_messages.rb