print error to trace
This commit is contained in:
parent
6824280225
commit
f805ea6bce
@ -5,8 +5,8 @@ module StackCommands
|
|||||||
|
|
||||||
def sync_bootstrap_proc
|
def sync_bootstrap_proc
|
||||||
lambda do |out, stack, mongo|
|
lambda do |out, stack, mongo|
|
||||||
# two tries each 4 seconds, then 5 tries each 10 seconds, then 5 tries each minute.
|
# two tries each 4 seconds, then 5 tries each 10 seconds, then 10 tries each 30 seconds.
|
||||||
sleep_times = [4]*2 + [10]*5 + [60]*5
|
sleep_times = [4]*2 + [10]*5 + [30]*10
|
||||||
|
|
||||||
begin
|
begin
|
||||||
out << "Syncing stack '#{stack.id}'...\n"
|
out << "Syncing stack '#{stack.id}'...\n"
|
||||||
|
|||||||
@ -82,6 +82,7 @@ module Devops
|
|||||||
return 0
|
return 0
|
||||||
end
|
end
|
||||||
rescue => e
|
rescue => e
|
||||||
|
@out << e.message
|
||||||
DevopsLogger.logger.error e.message
|
DevopsLogger.logger.error e.message
|
||||||
roll_back
|
roll_back
|
||||||
mongo.server_delete @server.id
|
mongo.server_delete @server.id
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user