mirror of
https://github.com/Freika/dawarich.git
synced 2026-01-10 17:21:38 -05:00
11 lines
267 B
Ruby
11 lines
267 B
Ruby
# frozen_string_literal: true
|
|
|
|
class ExceptionReporter
|
|
def self.call(exception, human_message = nil)
|
|
return unless DawarichSettings.self_hosted?
|
|
|
|
Rails.logger.error "#{human_message}: #{exception.message}"
|
|
|
|
Sentry.capture_exception(exception)
|
|
end
|
|
end
|