From f805ea6bcec5c11cbe8f0202b8c062a747b3024b Mon Sep 17 00:00:00 2001 From: Anton Chuchkalov Date: Mon, 31 Aug 2015 16:49:49 +0300 Subject: [PATCH] print error to trace --- devops-service/commands/stack.rb | 4 ++-- devops-service/lib/executors/server_executor.rb | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/devops-service/commands/stack.rb b/devops-service/commands/stack.rb index a579d21..e2742e0 100644 --- a/devops-service/commands/stack.rb +++ b/devops-service/commands/stack.rb @@ -5,8 +5,8 @@ module StackCommands def sync_bootstrap_proc lambda do |out, stack, mongo| - # two tries each 4 seconds, then 5 tries each 10 seconds, then 5 tries each minute. - sleep_times = [4]*2 + [10]*5 + [60]*5 + # two tries each 4 seconds, then 5 tries each 10 seconds, then 10 tries each 30 seconds. + sleep_times = [4]*2 + [10]*5 + [30]*10 begin out << "Syncing stack '#{stack.id}'...\n" diff --git a/devops-service/lib/executors/server_executor.rb b/devops-service/lib/executors/server_executor.rb index 16cf190..af27aa5 100644 --- a/devops-service/lib/executors/server_executor.rb +++ b/devops-service/lib/executors/server_executor.rb @@ -82,6 +82,7 @@ module Devops return 0 end rescue => e + @out << e.message DevopsLogger.logger.error e.message roll_back mongo.server_delete @server.id