Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2018-06-07 12:17:52 +0300
committerDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2018-06-07 12:17:52 +0300
commit2376e72b500d96afd4b9cda7c0ae0894130ff669 (patch)
treed77caa60786e19ae258163b239ee64922c97edc0
parent543459794a96c19e832ccfb6bb855cb60a84247f (diff)
Write cluster app installation error to rails logsdz-log-cluster-install-error
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
-rw-r--r--app/controllers/projects/clusters/applications_controller.rb3
1 files changed, 2 insertions, 1 deletions
diff --git a/app/controllers/projects/clusters/applications_controller.rb b/app/controllers/projects/clusters/applications_controller.rb
index 4d758402850..629e3d40c34 100644
--- a/app/controllers/projects/clusters/applications_controller.rb
+++ b/app/controllers/projects/clusters/applications_controller.rb
@@ -20,7 +20,8 @@ class Projects::Clusters::ApplicationsController < Projects::ApplicationControll
Clusters::Applications::ScheduleInstallationService.new(project, current_user).execute(application)
head :no_content
- rescue StandardError
+ rescue StandardError => e
+ Rails.logger.error("Request to install a cluster application failed: #{e.message}")
head :bad_request
end