From 313397b35df265578ea9f9df8040220661087e41 Mon Sep 17 00:00:00 2001 From: Sebastian Serth Date: Fri, 26 Nov 2021 00:02:18 +0100 Subject: [PATCH] Store sentry events for sync_all_to_runner_management --- app/controllers/execution_environments_controller.rb | 3 +++ 1 file changed, 3 insertions(+) diff --git a/app/controllers/execution_environments_controller.rb b/app/controllers/execution_environments_controller.rb index 5bc8328e..67410942 100644 --- a/app/controllers/execution_environments_controller.rb +++ b/app/controllers/execution_environments_controller.rb @@ -179,6 +179,7 @@ class ExecutionEnvironmentsController < ApplicationController success << true rescue Runner::Error => e Rails.logger.debug { "Runner error while getting all execution environments: #{e.message}" } + Sentry.capture_exception(e) environments_to_remove = [] success << false end @@ -189,6 +190,7 @@ class ExecutionEnvironmentsController < ApplicationController Runner.strategy_class.sync_environment(execution_environment) rescue Runner::Error => e Rails.logger.debug { "Runner error while synchronizing execution environment with id #{execution_environment.id}: #{e.message}" } + Sentry.capture_exception(e) false end @@ -198,6 +200,7 @@ class ExecutionEnvironmentsController < ApplicationController Runner.strategy_class.remove_environment(execution_environment) rescue Runner::Error => e Rails.logger.debug { "Runner error while deleting execution environment with id #{execution_environment.id}: #{e.message}" } + Sentry.capture_exception(e) false end