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:
parent
aa2fad1200
commit
e3c0e92659
1 changed files with 1 additions and 2 deletions
|
@ -63,8 +63,7 @@ DATA
|
||||||
self.data[:buckets][bucket_name] = bucket
|
self.data[:buckets][bucket_name] = bucket
|
||||||
elsif self.region != 'us-east-1'
|
elsif self.region != 'us-east-1'
|
||||||
response.status = 409
|
response.status = 409
|
||||||
msg = "Your region '#{self.region}' does not match the default region 'us-east-1'"
|
Fog::Logger.warning "Your region '#{self.region}' does not match the default region 'us-east-1'"
|
||||||
Fog.warning msg
|
|
||||||
raise(Excon::Errors.status_error({:expects => 201}, response))
|
raise(Excon::Errors.status_error({:expects => 201}, response))
|
||||||
end
|
end
|
||||||
response
|
response
|
||||||
|
|
Loading…
Reference in a new issue