print error to trace

This commit is contained in:
Anton Chuchkalov 2015-08-31 16:49:49 +03:00
parent 6824280225
commit f805ea6bce
2 changed files with 3 additions and 2 deletions

View File

@ -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"

View File

@ -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