1
0
Fork 0
mirror of https://github.com/fog/fog-aws.git synced 2022-11-09 13:50:52 -05:00

DEV-161796 Update AWS retries to use Fog::Logger

This commit is contained in:
Michael Sawyer 2017-11-02 10:49:00 -07:00
parent e562fab0f9
commit c1b065f295

View file

@ -564,7 +564,7 @@ module Fog
waiting = true
start_time = Time.now
wait_time = ((2.0 ** (1.0 + retries) * 100) + jitter) / 1000.0
puts "Waiting #{wait_time} seconds to retry."
Fog::Logger.warning "Waiting #{wait_time} seconds to retry."
while waiting
if Time.now - start_time >= wait_time
waiting = false