chore: Disable throwing Webhook exceptions to Sentry (#6663)
- There is little value in throwing the third-party webhook-related exceptions to sentry. Let's rather write it to logs instead.
This commit is contained in:
@@ -7,10 +7,7 @@ class Webhooks::Trigger
|
|||||||
timeout: 5
|
timeout: 5
|
||||||
)
|
)
|
||||||
Rails.logger.info "Performed Request: Code - #{response.code}"
|
Rails.logger.info "Performed Request: Code - #{response.code}"
|
||||||
rescue *ExceptionList::REST_CLIENT_EXCEPTIONS, URI::InvalidURIError => e
|
|
||||||
Rails.logger.error "Exception: invalid webhook url #{url} : #{e.message}"
|
|
||||||
rescue StandardError => e
|
rescue StandardError => e
|
||||||
Rails.logger.error "Exception: invalid webhook url #{url} : #{e.message}"
|
Rails.logger.warn "Exception: invalid webhook url #{url} : #{e.message}"
|
||||||
ChatwootExceptionTracker.new(e).capture_exception
|
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|||||||
Reference in New Issue
Block a user