dawarich/app/services/exception_reporter.rb
Eugene Burmakin 4898cd82ac Update specs
2025-06-26 22:05:32 +02:00

11 lines
239 B
Ruby

# frozen_string_literal: true
class ExceptionReporter
def self.call(exception)
return unless DawarichSettings.self_hosted?
Rails.logger.error "Exception: #{exception.message}"
Sentry.capture_exception(exception)
end
end