Sha256: bf097685060c8b0b9f0ef779b2f4956f21b6ccfe5623ab9050054c0de0a2da79

Contents?: true

Size: 427 Bytes

Versions: 19

Compression:

Stored size: 427 Bytes

Contents

class ProconBypassMan::SendErrorCommand
  # @param [String, Hash, Exception] error
  # @return [void]
  def self.execute(error: , stdout: true)
    body =
      case error
      when String, Hash
        error
      else
        error.full_message
      end

    ProconBypassMan.logger.error body
    ProconBypassMan.error_logger.error body
    puts body if stdout

    ProconBypassMan::ReportErrorJob.perform(error)
  end
end

Version data entries

19 entries across 19 versions & 1 rubygems

Version Path
procon_bypass_man-0.3.12 lib/procon_bypass_man/commands/send_error_command.rb
procon_bypass_man-0.3.11 lib/procon_bypass_man/commands/send_error_command.rb
procon_bypass_man-0.3.10 lib/procon_bypass_man/commands/send_error_command.rb
procon_bypass_man-0.3.9 lib/procon_bypass_man/commands/send_error_command.rb
procon_bypass_man-0.3.8.1 lib/procon_bypass_man/commands/send_error_command.rb
procon_bypass_man-0.3.8 lib/procon_bypass_man/commands/send_error_command.rb
procon_bypass_man-0.3.7 lib/procon_bypass_man/commands/send_error_command.rb
procon_bypass_man-0.3.6 lib/procon_bypass_man/commands/send_error_command.rb
procon_bypass_man-0.3.5 lib/procon_bypass_man/commands/send_error_command.rb
procon_bypass_man-0.3.4 lib/procon_bypass_man/commands/send_error_command.rb
procon_bypass_man-0.3.3.1 lib/procon_bypass_man/commands/send_error_command.rb
procon_bypass_man-0.3.3 lib/procon_bypass_man/commands/send_error_command.rb
procon_bypass_man-0.3.2 lib/procon_bypass_man/commands/send_error_command.rb
procon_bypass_man-0.3.1 lib/procon_bypass_man/commands/send_error_command.rb
procon_bypass_man-0.3.0 lib/procon_bypass_man/commands/send_error_command.rb
procon_bypass_man-0.2.3 lib/procon_bypass_man/commands/send_error_command.rb
procon_bypass_man-0.2.2 lib/procon_bypass_man/commands/send_error_command.rb
procon_bypass_man-0.2.1 lib/procon_bypass_man/commands/send_error_command.rb
procon_bypass_man-0.2.0 lib/procon_bypass_man/commands/send_error_command.rb