diff --git a/server/lib/script_vault/tracker.rb b/server/lib/script_vault/tracker.rb index b5352263..d1183f51 100644 --- a/server/lib/script_vault/tracker.rb +++ b/server/lib/script_vault/tracker.rb @@ -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) @@ -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