From 345df747bdcab76eca06f11f12e77167b1322f18 Mon Sep 17 00:00:00 2001 From: Sebastian Serth Date: Fri, 12 Aug 2022 17:16:21 +0200 Subject: [PATCH] Prevent Runner sync errors to be reported to Sentry, increase log level --- app/controllers/execution_environments_controller.rb | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/app/controllers/execution_environments_controller.rb b/app/controllers/execution_environments_controller.rb index 4a665fe8..3b9fe65e 100644 --- a/app/controllers/execution_environments_controller.rb +++ b/app/controllers/execution_environments_controller.rb @@ -172,8 +172,7 @@ class ExecutionEnvironmentsController < ApplicationController begin 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) + Rails.logger.warning { "Runner error while synchronizing execution environment with id #{@execution_environment.id}: #{e.message}" } redirect_to @execution_environment, alert: t('execution_environments.index.synchronize.failure', error: e.message) else redirect_to @execution_environment, notice: t('execution_environments.index.synchronize.success')