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

Use Fog::Logger.warning per request

This commit is contained in:
Kristoffer Roupé 2015-11-25 22:03:21 +01:00
parent aa2fad1200
commit e3c0e92659

View file

@ -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