From c1b065f2955ca6eb319cba91144da0fa58a33673 Mon Sep 17 00:00:00 2001 From: Michael Sawyer Date: Thu, 2 Nov 2017 10:49:00 -0700 Subject: [PATCH] DEV-161796 Update AWS retries to use Fog::Logger --- lib/fog/aws/compute.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/fog/aws/compute.rb b/lib/fog/aws/compute.rb index 87fd662a9..d425f2755 100644 --- a/lib/fog/aws/compute.rb +++ b/lib/fog/aws/compute.rb @@ -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