summaryrefslogtreecommitdiff
path: root/lib/solidus_subscriptions/processing_error_handlers/rails_logger.rb
blob: d209123ee2f341610fdf523c8b84dbf19db65f3f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
# frozen_string_literal: true

module SolidusSubscriptions
  module ProcessingErrorHandlers
    class RailsLogger
      def self.call(exception)
        new(exception).call
      end

      def initialize(exception)
        @exception = exception
      end

      def call
        Rails.logger.error exception.message
      end

      private

      attr_reader :exception
    end
  end
end