print error to trace
This commit is contained in:
parent
6824280225
commit
f805ea6bce
@ -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"
|
||||
|
||||
@ -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
|
||||
|
||||
Loading…
Reference in New Issue
Block a user