From e3c0e9265940efacbf816f4ad17fa7cc5a6946ef Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kristoffer=20Roup=C3=A9?= Date: Wed, 25 Nov 2015 22:03:21 +0100 Subject: [PATCH] Use Fog::Logger.warning per request --- lib/fog/aws/requests/storage/put_bucket.rb | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lib/fog/aws/requests/storage/put_bucket.rb b/lib/fog/aws/requests/storage/put_bucket.rb index c7bdd8a09..87f4c2888 100644 --- a/lib/fog/aws/requests/storage/put_bucket.rb +++ b/lib/fog/aws/requests/storage/put_bucket.rb @@ -63,8 +63,7 @@ DATA self.data[:buckets][bucket_name] = bucket elsif self.region != 'us-east-1' response.status = 409 - msg = "Your region '#{self.region}' does not match the default region 'us-east-1'" - Fog.warning msg + Fog::Logger.warning "Your region '#{self.region}' does not match the default region 'us-east-1'" raise(Excon::Errors.status_error({:expects => 201}, response)) end response