Skip to content

Commit

Permalink
fix(CE): add exception to tracker (#436)
Browse files Browse the repository at this point in the history
  • Loading branch information
subintp authored Oct 24, 2024
1 parent 7a2fdfa commit 7269342
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions server/lib/script_vault/tracker.rb
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ def self.included(base)
request.body = event_data.to_json
http.request(request)
end
rescue StandardError
rescue StandardError => e
Rails.logger.error "Failed to transmit data: #{e.message}"
end
base.send(:private, :dispatch_details)
Expand All @@ -34,7 +34,7 @@ def _track_event(event_name, properties = {})

external_event_data = event_data.dup
dispatch_details(external_event_data)
rescue StandardError
rescue StandardError => e
Rails.logger.error "Failed to transmit data: #{e.message}"
end
end
Expand Down

0 comments on commit 7269342

Please sign in to comment.