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