Module: Tanshuku::Configuration::DefaultExceptionReporter
- Defined in:
- lib/tanshuku/configuration.rb
Overview
The default error-reporter. Calls Rails.logger.warn
.
Class Method Summary collapse
-
.call(exception:, original_url:) ⇒ void
Calls
Rails.logger.warn
and logs the exception and the original URL.
Class Method Details
.call(exception:, original_url:) ⇒ void
This method returns an undefined value.
Calls Rails.logger.warn
and logs the exception and the original URL.
40 41 42 |
# File 'lib/tanshuku/configuration.rb', line 40 def self.call(exception:, original_url:) Rails.logger.warn("Tanshuku - Failed to shorten a URL: #{exception.inspect} for #{original_url.inspect}") end |