fix: Disable marking IMAP connection as invalid for Standard Errors (#4764)

This commit is contained in:
Pranav Raj S
2022-06-02 11:38:58 +05:30
committed by GitHub
parent c7c46463ae
commit 6b9f4d08ca
3 changed files with 20 additions and 11 deletions

View File

@@ -12,8 +12,11 @@ class ChatwootExceptionTracker
end
def capture_exception
capture_exception_with_sentry if ENV['SENTRY_DSN'].present?
# Implement other providers like honeybadger, rollbar etc in future
if ENV['SENTRY_DSN'].present?
capture_exception_with_sentry
else
Rails.logger.error @exception
end
end
private