diff options
author | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2018-06-07 12:17:52 +0300 |
---|---|---|
committer | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2018-06-07 12:17:52 +0300 |
commit | 2376e72b500d96afd4b9cda7c0ae0894130ff669 (patch) | |
tree | d77caa60786e19ae258163b239ee64922c97edc0 | |
parent | 543459794a96c19e832ccfb6bb855cb60a84247f (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.rb | 3 |
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 |