fix: modify exception tracker to log even if sentry configured (#7563)
Right now, if sentry is configured exception won't be logged. This results in the log management tool missing every error captured with ChatwootExceptionTracker. This change logs the exception, even if Sentry is configured or not. Fixes https://linear.app/chatwoot/issue/CW-2145/improve-logging-info-debug-trace
This commit is contained in:
parent
4828071fc3
commit
d188600559
@ -12,11 +12,8 @@ class ChatwootExceptionTracker
|
||||
end
|
||||
|
||||
def capture_exception
|
||||
if ENV['SENTRY_DSN'].present?
|
||||
capture_exception_with_sentry
|
||||
else
|
||||
Rails.logger.error @exception
|
||||
end
|
||||
capture_exception_with_sentry if ENV['SENTRY_DSN'].present?
|
||||
Rails.logger.error @exception
|
||||
end
|
||||
|
||||
private
|
||||
|
||||
Loading…
Reference in New Issue
Block a user