mirror of
https://github.com/Freika/dawarich.git
synced 2026-01-14 03:01:39 -05:00
10 lines
181 B
Ruby
10 lines
181 B
Ruby
|
|
# frozen_string_literal: true
|
||
|
|
|
||
|
|
class ExceptionReporter
|
||
|
|
def self.call(exception)
|
||
|
|
return unless DawarichSettings.self_hosted?
|
||
|
|
|
||
|
|
Sentry.capture_exception(exception)
|
||
|
|
end
|
||
|
|
end
|