Sha256: ba06143dce830558753fdd75aeaf6308d339132ac43c49976ae842a596ec69ec

Contents?: true

Size: 424 Bytes

Versions: 5

Compression:

Stored size: 424 Bytes

Contents

module Eventboss
  module ErrorHandlers
    class Logger
      def call(exception, context = {})
        notice = {}.merge!(context)
        notice[:jid] = notice[:processor].jid if notice[:processor]
        notice[:processor] = notice[:processor].class.to_s if notice[:processor]
        Eventboss.logger.error(notice) do
          "Failure processing request #{exception.message}"
        end
      end
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
eventboss-1.3.1 lib/eventboss/error_handlers/logger.rb
eventboss-1.3.0 lib/eventboss/error_handlers/logger.rb
eventboss-1.2.1 lib/eventboss/error_handlers/logger.rb
eventboss-1.2.0 lib/eventboss/error_handlers/logger.rb
eventboss-1.1.3 lib/eventboss/error_handlers/logger.rb